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 # Third-party apps
'django_extensions', 'django_extensions',
'djcelery', 'djcelery',
'djcelery_email',
'fluent_dashboard', 'fluent_dashboard',
'admin_tools', 'admin_tools',
'admin_tools.theming', 'admin_tools.theming',

View File

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