Migrations/seeds doesn't work in Docker and production
See original GitHub issueBecause src/server/migrations
isn’t included at all and not ts-node
and required directories either.
Could be fixed by using a npm run migrate:prod
for example. If I find some time in the coming days I’ll put up a PR!
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Migrations / Seeds Production Ready? #422 - sequelize/cli
db:seed:all doesn't appear to work when run multiple times. For migrations, a row is inserted into SequelizeMeta by the name of the file...
Read more >Using Docker with NodeJS in development and production
In this article we'll create a production Docker image for a Node/Express app. We'll also add Docker to the development process using Docker...
Read more >Use Compose in production - Docker Documentation
Guide to using Docker Compose in production. ... If you want to scale up your application, you can run Compose apps on a...
Read more >How to Fix and Debug Docker Containers Like a Superhero
Container errors are tricky to diagnose, but some investigative magic works wonders. Read along to learn how to debug Docker containers.
Read more >Docker development best practices - Docker Documentation
Differences in development and production environments ; Don't worry about time drift. Always run an NTP client on the Docker host...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@joenas @mzch This should be fixed in the latest build, sorry for the delay.
I tried to rebuild freshlytics from sources, and when doing
npm run migrate
, it reported as below:Yes, no foreign server
pipelinedb
. And if it’s fixed by addingCREATE SERVER "pipelinedb" FOREIGN DATA WRAPPER postgres_fdw;
to sql, thenCREATE VIEW ... WITH (actioin=materialize)
caused error, too.How can this be fixed? Using PostgreSQL 11 and 12 both has the same error.