autodeploy

This commit is contained in:
j3d1 2020-11-09 14:47:30 +01:00
parent 124909f4fa
commit b8073cc539
2 changed files with 19 additions and 0 deletions

1
.gitignore vendored
View file

@ -203,3 +203,4 @@ dmypy.json
.pyre/ .pyre/
backend/config/ backend/config/
update.log

18
update.sh Normal file
View file

@ -0,0 +1,18 @@
#!/bin/bash
DIR=$(dirname $0)
function prefix_date(){
while read line
do
echo [$(date)] $line
done
}
function run_update(){
git pull
cd backend
python manage.py migrate
}
run_update | prefix_date > $DIR/update.log