From 6b5395dc393192956f107e2cd6b6db86f340f87b Mon Sep 17 00:00:00 2001 From: winkidney Date: Thu, 19 Dec 2019 20:31:36 +0800 Subject: [PATCH] Fix: Fix path error for secret-key-gen --- docker/scripts/bootstrap.sh | 2 +- docker/scripts/start.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/scripts/bootstrap.sh b/docker/scripts/bootstrap.sh index 5cadc49..0378acb 100755 --- a/docker/scripts/bootstrap.sh +++ b/docker/scripts/bootstrap.sh @@ -9,7 +9,7 @@ gen_key() { echo "If no previous pinry/local_settings.py generated, you can have a look and edit it." echo "If you want to use docker-compose, just edit docker-compose.yml and use 'docker-compose up'" - SECRET_KEY=$(bash /scripts/gen_key.sh) + SECRET_KEY=$(bash /pinry/docker/scripts/gen_key.sh) echo "" echo "Your secret-key is(also saved/overwritten your docker's /data/production_secret_key.txt):" diff --git a/docker/scripts/start.sh b/docker/scripts/start.sh index f3f05fc..fc04774 100755 --- a/docker/scripts/start.sh +++ b/docker/scripts/start.sh @@ -14,7 +14,7 @@ bash ${PROJECT_ROOT}/docker/scripts/bootstrap.sh # If static files don't exist collect them cd ${PROJECT_ROOT} -python manage.py collectstatic --noinput --settings=pinry.settings.docker +python manage.py collect --noinput --settings=pinry.settings.docker # If database doesn't exist yet create it if [ ! -f /data/production.db ]