admin管理员组文章数量:1318331
During initial development of my project, I used typeorm synchronize: true
, and it has helped me a lot. But when the time reaches to make it live in production, I just kept the synchronize to true in the production as well.
But now the I want to do changes in the system, by which there will be changes in the schema as well, and then I need to make things live again.
My questions are:
Should I keep
synchronize: true
in development phase or in development environment? Because from now, I will again go to development environment, but it will be the maintenance phase. If I keep it false, then I have to keep generating migrations and keep running them by the time I finalize the maintenance, and then I can run the same migrations on the live server, but it will consume some of my time doing it all.What is the correct way of doing this, if I keep synchronize set to true in development, once the development is finalized and I am ready for production. What should I do first, and when will I stop using
synchronize: true
in development environment as well?
本文标签: postgresqlUsing synchronize true after the project has been live in TypeormStack Overflow
版权声明:本文标题:postgresql - Using synchronize: true after the project has been live in Typeorm - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742042150a2417598.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论