autodeploy
This commit is contained in:
parent
124909f4fa
commit
b8073cc539
2 changed files with 19 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -203,3 +203,4 @@ dmypy.json
|
|||
.pyre/
|
||||
|
||||
backend/config/
|
||||
update.log
|
||||
|
|
18
update.sh
Normal file
18
update.sh
Normal 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
|
Loading…
Reference in a new issue