Created
February 18, 2021 11:45
-
-
Save AnjaneyuluBatta505/2facb3232ee52422c35f533dfc39fb01 to your computer and use it in GitHub Desktop.
deploy.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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