Rails:部署到内部服务器和 Heroku 是否合理?
考虑将应用程序迁移到 Heroku。目前我们建造并建造了在部署到我们自己的服务器进行托管之前进行本地测试...但是应用程序正在增长,现在想知道拥有 3 个版本的应用程序是否合理。开发者机器本地的一台。第二个(测试)通过 Capistrano 部署到内部服务器。最后是 Heroku(制作)上的第三个。数据库不需要共享。
对于这种情况有什么问题或建议吗?
Considering migrating an app to Heroku. Currently we build & test locally before deploying to our own server for hosting...But the application is growing and now wondering if it's reasonable to have, say, 3 versions of our app. One local to developer's machines. A second (testing) deployed via Capistrano to an internal server. And then finally a third on Heroku (production). Databases would not need to be shared.
Any problems or advice for this sort of scenario?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为拥有与您的生产环境相同的临时服务器是一件好事。因此,与其在内部服务器上进行测试,不如在heroku上进行测试不是更好吗?
为此,我在 heroku 上创建了另一个应用程序,在更新我的生产应用程序之前,我将我的应用程序推送到暂存应用程序。
我强烈推荐 heroku_san gem,它可以简化将应用程序推送到 heroku 的过程,只需
rake staging 部署.
I think it's a good thing to have a staging server with the same environment as your production. So instead of internal server, wouldn't it be better to test on heroku?
For this purpose I've created another app on heroku and before updating my production app, I push my app to the staging one.
I would highly recommend the heroku_san gem which simplifies pushing app to heroku to just
rake staging deploy
.我做这个。我负责开发人员的机器、暂存和生产方面的开发。
Staging 是我们的测试沙箱,有时还与生产环境共享用户数据库,这样我就可以让用户进行 Beta 测试等。
您是否使用 Heroku 进行生产环境真的并不重要,不是吗?
I do this. I have development on developer's machines, staging, and production.
Staging is our test sandbox and sometimes also shares user databases with production so I can let users beta test, etc.
Whether or not you use Heroku for production really doesn't matter does it?