Fixes on deployment
This commit is contained in:
parent
c28664ae40
commit
c115be72e9
|
@ -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',
|
||||||
|
|
|
@ -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!
|
||||||
|
@ -213,6 +214,7 @@ function main () {
|
||||||
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
|
||||||
|
if [[ ! -e $project_name ]]; then
|
||||||
surun "orchestra-admin startproject $project_name"
|
surun "orchestra-admin startproject $project_name"
|
||||||
|
fi
|
||||||
cd $project_name
|
cd $project_name
|
||||||
setup_database "$dev" "$noinput"
|
setup_database "$dev" "$noinput"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue