Ensure that migrations are run when the container boots
This is a little derpy, but the simplest way to reliable get these migrations to execute along with application deployments
This commit is contained in:
parent
9f451c1994
commit
0c8d0b7f3c
|
@ -0,0 +1 @@
|
|||
node_modules/
|
|
@ -20,7 +20,8 @@ COPY migrations ${APP_DIR}/migrations
|
|||
COPY config ${APP_DIR}/config
|
||||
COPY public ${APP_DIR}/public
|
||||
COPY views ${APP_DIR}/views
|
||||
COPY .sequelizerc ${APP_DIR}/
|
||||
|
||||
EXPOSE 3030
|
||||
|
||||
CMD node ./build/
|
||||
CMD node ./node_modules/.bin/sequelize db:migrate && node ./build/
|
||||
|
|
Loading…
Reference in New Issue