Compare commits
No commits in common. "perform-migration-on-startup" and "main" have entirely different histories.
perform-mi
...
main
3 changed files with 2 additions and 11 deletions
|
|
@ -90,4 +90,4 @@ USER nobody
|
|||
# above and adding an entrypoint. See https://github.com/krallin/tini for details
|
||||
# ENTRYPOINT ["/tini", "--"]
|
||||
|
||||
ENTRYPOINT ["/app/bin/docker-entrypoint.sh"]
|
||||
CMD ["/app/bin/server"]
|
||||
|
|
|
|||
|
|
@ -255,7 +255,7 @@ For testing the production Docker build locally:
|
|||
docker compose -f docker-compose.prod.yml up
|
||||
```
|
||||
|
||||
5. **Database migrations run automatically** on app start. For manual migration:
|
||||
5. **Run database migrations:**
|
||||
```bash
|
||||
docker compose -f docker-compose.prod.yml exec app /app/bin/mv eval "Mv.Release.migrate"
|
||||
```
|
||||
|
|
|
|||
|
|
@ -1,9 +0,0 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
echo "==> Running database migrations..."
|
||||
/app/bin/migrate
|
||||
|
||||
echo "==> Starting application..."
|
||||
exec /app/bin/server
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue