mirror of
https://gitlab.crans.org/bde/nk20-scripts
synced 2024-12-26 09:22:22 +00:00
8 lines
229 B
Bash
Executable File
8 lines
229 B
Bash
Executable File
#!/usr/bin/sh
|
|
sudo service postgresql stop
|
|
sudo service postgresql start
|
|
sudo -u postgres sh -c "dropdb note_db && psql -c 'CREATE DATABASE note_db OWNER note;'";
|
|
echo 'reset db';
|
|
./manage.py migrate
|
|
./manage.py loaddata initial
|