Run database migrations on startup
Add railway.json config and update Dockerfile entrypoint to run migrations before starting the server.
This commit is contained in:
+1
-1
@@ -98,4 +98,4 @@ USER nobody
|
||||
# above and adding an entrypoint. See https://github.com/krallin/tini for details
|
||||
# ENTRYPOINT ["/tini", "--"]
|
||||
|
||||
CMD ["/app/bin/server"]
|
||||
CMD ["/bin/sh", "-c", "/app/bin/migrate && /app/bin/server"]
|
||||
|
||||
Reference in New Issue
Block a user