File tree Expand file tree Collapse file tree 1 file changed +0
-29
lines changed
CI/validate_and_deploy/2_deploy/server_scripts Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Original file line number Diff line number Diff line change 1515
1616>&2 echo " Postgres is up - executing command"
1717
18- if [[ " ${basic_config__ENVIRONMENT} " == " TEST" ]]; then
19- # setup database
20- HOME_DIR=` pwd`
21- rm -r /wall_e || true
22- git clone https://github.com/CSSS/wall_e.git /wall_e
23- cd /wall_e/wall_e/
24- git checkout HEAD^ # temporarily checkout previous commit
25- PGPASSWORD=$POSTGRES_PASSWORD psql --set=WALL_E_DB_USER=" ${database_config__WALL_E_DB_USER} " \
26- --set=WALL_E_DB_PASSWORD=" ${database_config__WALL_E_DB_PASSWORD} " \
27- --set=WALL_E_DB_DBNAME=" ${database_config__WALL_E_DB_DBNAME} " \
28- -h " $host " -U " postgres" -f " ${HOME_DIR} " /create-database.ddl
29- python3 django_manage.py migrate
30- wget https://backups.sfucsss.org/latest/banrecords.json
31- wget https://backups.sfucsss.org/latest/commandstats.json
32- wget https://backups.sfucsss.org/latest/levels.json
33- wget https://backups.sfucsss.org/latest/profilebucketsinprogress.json
34- wget https://backups.sfucsss.org/latest/reminders.json
35- wget https://backups.sfucsss.org/latest/userpoints.json
36- python3 django_manage.py loaddata banrecords.json
37- python3 django_manage.py loaddata commandstats.json
38- python3 django_manage.py loaddata levels.json
39- python3 django_manage.py loaddata profilebucketsinprogress.json
40- python3 django_manage.py loaddata reminders.json
41- python3 django_manage.py loaddata userpoints.json
42- rm banrecords.json commandstats.json levels.json profilebucketsinprogress.json reminders.json userpoints.json
43- cd " ${HOME_DIR} "
44- rm -r /wall_e || true
45- fi
46-
4718python3 django_manage.py migrate
4819
4920exec $cmd
You can’t perform that action at this time.
0 commit comments