Browse Source
Merge pull request #1164 from doccano/fix/herokuDeploy
Fix heroku deploy
pull/1165/head
Hiroki Nakayama
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
4 additions and
2 deletions
-
Dockerfile
-
app.json
-
tools/heroku.sh
|
|
@ -29,6 +29,8 @@ COPY Pipfile* /tmp/ |
|
|
|
# hadolint ignore=DL3013 |
|
|
|
RUN pip install --no-cache-dir -U pip pipenv==2020.11.15 \ |
|
|
|
&& pipenv lock -r > /requirements.txt \ |
|
|
|
&& echo "psycopg2-binary==2.8.6" >> /requirements.txt \ |
|
|
|
&& echo "django-heroku==0.3.1" >> /requirements.txt \ |
|
|
|
&& pip install --no-cache-dir -r /requirements.txt \ |
|
|
|
&& pip wheel --no-cache-dir -r /requirements.txt -w /deps |
|
|
|
|
|
|
|
|
|
@ -38,7 +38,7 @@ |
|
|
|
}, |
|
|
|
"stack": "container", |
|
|
|
"scripts": { |
|
|
|
"postdeploy": "sh tools/heroku.sh" |
|
|
|
"postdeploy": "sh /doccano/tools/heroku.sh" |
|
|
|
}, |
|
|
|
"addons": [ |
|
|
|
{ |
|
|
|
|
|
@ -3,5 +3,5 @@ |
|
|
|
set -o errexit |
|
|
|
|
|
|
|
if [ -n "$ADMIN_USER_NAME" ]; then |
|
|
|
python app/manage.py create_admin --noinput --username="$ADMIN_USER_NAME" --email="$ADMIN_CONTACT_EMAIL" --password="$ADMIN_PASSWORD" |
|
|
|
python /doccano/app/manage.py create_admin --noinput --username="$ADMIN_USER_NAME" --email="$ADMIN_CONTACT_EMAIL" --password="$ADMIN_PASSWORD" |
|
|
|
fi |