-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate.sh
More file actions
executable file
·19 lines (18 loc) · 800 Bytes
/
Copy pathupdate.sh
File metadata and controls
executable file
·19 lines (18 loc) · 800 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
git pull && sudo docker-compose down && sudo docker-compose up -d --build && sudo docker-compose exec wsgi python manage.py migrate --noinput
echo '-----------------------------------------------------'
echo ' All done! '
echo '-----------------------------------------------------'
echo ''
echo 'Periodic tasks:'
echo '* Do not forget periodic tasks on huey run on minute=0 and hour=0 of certain days, if updating during that time they might need to be re-run manually'
echo ''
echo 'Other actions you may want to do now:'
echo '# Seed data:'
echo 'sudo docker-compose exec wsgi python manage.py loaddata <fixture>'
echo ''
echo '# See running processes:'
echo 'sudo docker-compose ps'
echo ''
echo '# See logs:'
echo 'sudo docker-compose logs'