set up migrations on deploy
This commit is contained in:
parent
b8c474ca89
commit
d5b10a6f22
|
@ -44,6 +44,7 @@ WORKDIR /app
|
||||||
ENV APP_NAME=backend
|
ENV APP_NAME=backend
|
||||||
|
|
||||||
COPY --from=build /app/_build/prod/rel/${APP_NAME} ./
|
COPY --from=build /app/_build/prod/rel/${APP_NAME} ./
|
||||||
|
COPY Procfile ./
|
||||||
RUN chown -R nobody: /app
|
RUN chown -R nobody: /app
|
||||||
USER nobody
|
USER nobody
|
||||||
|
|
||||||
|
|
2
backend/Procfile
Normal file
2
backend/Procfile
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
web: /app/bin/backend start
|
||||||
|
release: /app/bin/backend eval "Backend.Release.migrate"
|
Loading…
Reference in a new issue