nano git-pull-automate.sh
cd code
ls
source env/bin/activate
git branch
git checkout master
git pull origin master
git checkout production
git merge master
python manage.py migrate
sudo systemctl restart gunicorn
chmod +x git-pull-automate.sh
run usgin
./git-pull-automate.sh
Comments
Post a Comment