Skip to content

Commit

Permalink
Merge pull request #6 from canonical/only-server-inits-database
Browse files Browse the repository at this point in the history
Makes it so only the server initialized the db
  • Loading branch information
AmberCharitos authored Dec 8, 2023
2 parents 63074a4 + 4157289 commit 1fc07dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion startup-scripts/k8s-bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ else
fi

echo "Initialising superset"
/app/k8s/k8s-init.sh

if [[ "${CHARM_FUNCTION}" == "worker" ]]; then
echo "Starting Celery worker..."
Expand All @@ -51,5 +50,6 @@ elif [[ "${CHARM_FUNCTION}" == "app" ]]; then
flask run -p 8088 --with-threads --reload --debugger --host=0.0.0.0
elif [[ "${CHARM_FUNCTION}" == "app-gunicorn" ]]; then
echo "Starting web app..."
/app/k8s/k8s-init.sh
/app/k8s/run-server.sh
fi

0 comments on commit 1fc07dc

Please sign in to comment.