deploy.sh 181 Bytes
Newer Older
Jomaro Rodrigues's avatar
Jomaro Rodrigues committed
1 2 3 4 5 6 7 8
#!/usr/bin/bash


(cd src; python manage.py collectstatic)


if ! sudo -u postgres psql adega
then
legton's avatar
legton committed
9
    sudo -u postgres psql < postgres/create.sql
Jomaro Rodrigues's avatar
Jomaro Rodrigues committed
10 11 12 13 14 15 16 17
fi


python manage.py migrate