If I try to run my sequelize migrations and then run my Node server in the same command, I run into the issue of my server never starting up. If the migrations have already been run before, the sequelize db:migrate
command doesn't go past the "No migrations were executed, database schema was already up to date." message, and my second command is never able to run. If the migration has not run before, everything runs properly in sequence.
This is my npm start
command: sequelize db:migrate && node index.js
I assume that internally sequelize db:migrate
is not resolving anything in the case where this log message is shown, so is there a way I can "terminate" this command after some time and proceed to my node command?