Change user
sudo su app_user
cd ~/hosting
./production.env
and./staging.env
- environment variables to start containers./deploy-from-staging-to-production.sh
- get version from staging and start it on production./rebuild-production.sh
- restart production container with new evn params./rebuild-staging.sh
- restart staging container with new evn params./deploy-to-production.sh 22
- deploy specific build to production./deploy-to-staging.sh 22
- deploy specific build to staging
Logs are located in /storage/production-logs/
and /storage/staging-logs/
.
- Connect to hosting
- Switch user to app_user
- Go to ~/hosting
- Edit param in production.env
- Run
./rebuild-production.sh