Fixes on deployment
This commit is contained in:
parent
c28664ae40
commit
c115be72e9
|
@ -57,7 +57,6 @@ INSTALLED_APPS = [
|
|||
# Third-party apps
|
||||
'django_extensions',
|
||||
'djcelery',
|
||||
'djcelery_email',
|
||||
'fluent_dashboard',
|
||||
'admin_tools',
|
||||
'admin_tools.theming',
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue