在 Play Framework 2.0 上运行进化 [英] Running evolutions on Play Framework 2.0
本文介绍了在 Play Framework 2.0 上运行进化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
最近的这篇文章,如何在 Play 框架中使用 Evolutions2.0?,表示在运行 Play 2.0 时会自动应用进化.我已经尝试了 play-2.0-beta 下载和最新的 git 代码,但我没有看到这种行为.事实上,我找不到任何方法在生产模式中应用这些演变.我错过了什么吗?
This recent post, How to use Evolutions in Play Framework 2.0?, says that evolutions will automatically be applied when running Play 2.0. I've tried the play-2.0-beta download and latest git code, and I'm not seeing this behavior. In fact, I can't find any way to apply the evolutions in production mode. Am I missing something?
推荐答案
将 applyEvolutions.default=true
添加到您的 application.conf 将在您的应用程序中默认启用进化.
Adding applyEvolutions.default=true
to your application.conf will enable evolutions by default in your application.
这篇关于在 Play Framework 2.0 上运行进化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文