Skip to content

zaverden/ContestantRegister

Repository files navigation

ContestantRegister

Build Status

Hosting

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/.

How to change config

  • Connect to hosting
  • Switch user to app_user
  • Go to ~/hosting
  • Edit param in production.env
  • Run ./rebuild-production.sh