Skript na kompletní nasazení webu
This commit is contained in:
parent
0bae130e5d
commit
89a51c7d73
1 changed files with 21 additions and 0 deletions
21
deploy_v2/full_redeploy.sh
Normal file
21
deploy_v2/full_redeploy.sh
Normal file
|
@ -0,0 +1,21 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -u
|
||||
|
||||
deactivate || true
|
||||
|
||||
cd /akce/mam/www/mamweb-test/
|
||||
make sync_test
|
||||
systemctl --user stop mamweb-test.service
|
||||
rm -rvf env
|
||||
make install_venv
|
||||
. env/bin/activate
|
||||
make install
|
||||
deploy_v2/pre_migration.py
|
||||
make deploy_test
|
||||
./manage.py load_org_permissions admin_org_prava.json
|
||||
./manage.py loaddata data/*
|
||||
systemctl --user start mamweb-test.service
|
||||
./manage.py generate_thumbnails
|
||||
|
||||
echo 'Et voilá!'
|
Loading…
Reference in a new issue