Skip to content

Instantly share code, notes, and snippets.

@AnjaneyuluBatta505
Created February 18, 2021 11:45
Show Gist options
  • Save AnjaneyuluBatta505/2facb3232ee52422c35f533dfc39fb01 to your computer and use it in GitHub Desktop.
Save AnjaneyuluBatta505/2facb3232ee52422c35f533dfc39fb01 to your computer and use it in GitHub Desktop.
deploy.sh
cd ~/project/payslip-visualisation/
branch="$(git name-rev --name-only HEAD)"
git checkout $branch
git pull origin $branch
source ~/.virtualenvs/finklim/bin/activate
pip install -r requirements.txt
python manage.py migrate
python manage.py collectstatic --no-input
sudo supervisorctl restart all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment