set up migrations on deploy

This commit is contained in:
Tao Bror Bojlén 2019-07-17 12:40:21 +01:00
parent b8c474ca89
commit d5b10a6f22
No known key found for this signature in database
GPG Key ID: C6EC7AAB905F9E6F
2 changed files with 3 additions and 0 deletions

View File

@ -44,6 +44,7 @@ WORKDIR /app
ENV APP_NAME=backend
COPY --from=build /app/_build/prod/rel/${APP_NAME} ./
COPY Procfile ./
RUN chown -R nobody: /app
USER nobody

2
backend/Procfile Normal file
View File

@ -0,0 +1,2 @@
web: /app/bin/backend start
release: /app/bin/backend eval "Backend.Release.migrate"