11 lines
295 B
Bash
11 lines
295 B
Bash
#!/bin/bash
|
|
|
|
cd /opt/regluit
|
|
source ENV/bin/activate
|
|
export DJANGO_SETTINGS_MODULE=regluit.settings.please
|
|
|
|
sysadmin/drop_tables.sh | django-admin.py dbshell
|
|
cat test/campaign_starter.sql | django-admin.py dbshell
|
|
|
|
django-admin.py makemigrations
|
|
django-admin.py migrate --fake-initial --noinput |