Fixes on deployment

This commit is contained in:
Marc Aymerich 2015-10-03 19:47:10 +00:00
parent c28664ae40
commit c115be72e9
2 changed files with 6 additions and 3 deletions

View File

@ -57,7 +57,6 @@ INSTALLED_APPS = [
# Third-party apps
'django_extensions',
'djcelery',
'djcelery_email',
'fluent_dashboard',
'admin_tools',
'admin_tools.theming',

View File

@ -79,6 +79,7 @@ function install_orchestra () {
function setup_database () {
dev=$1
noinput=$2
run sudo apt-get install -y postgresql python3-psycopg2
# Setup Database
if [[ $dev ]]; then
# Speeding up tests, don't do this in production!
@ -213,6 +214,7 @@ function main () {
exit 5
fi
sudo true
if [[ ! $noinput && ! $bproject_name ]]; then
while true; do
read -p "Enter a project name [panel]: " project_name
@ -249,7 +251,9 @@ function main () {
cd $home
install_orchestra "$dev" $home $repo
if [[ ! -e $project_name ]]; then
surun "orchestra-admin startproject $project_name"
fi
cd $project_name
setup_database "$dev" "$noinput"