Heroku 上的 Django
我正在建立一个网站,现在我在 Webfaction 最基本的计划上托管该网站。然而,今天我收到一条消息,我的一个进程被终止,因为它消耗了大量内存。
我预计会使用更多的内存,并且还需要比 webfaction 更大的数据库,因此我考虑切换到另一个托管并使用 webfaction 作为开发服务器。
我研究了 AWS EC2,但我认为它的学习曲线太陡峭,而且正如我现在所看到的,我更倾向于 Heroku。
然而,免费版本只能为您提供 5mb 的 PostgreSQL 数据库。将来我需要的远不止这些,但第一个付费计划不会立即提供 2 GB——一开始我无法每月支付 200 美元。
我有几个问题:
Heroku 中的数据库是否有中间计划?如果不是,理由是什么? -- 我不明白。
我发现 MongoDB 和 CouchDB 插件要便宜得多——我知道它们是 nosql,但是 Django ORM 无法真正处理它。让我的应用程序保持原样并使其在 mongodb 或 couchdb 上运行有多容易? (我的 Django 应用程序现在是为 Postgres 编写的)。
是否可以同时在 Heroku 上部署我的 Django 应用程序并连接我的 Webfaction postgresql 数据库?
非常感谢,我正在开始这个事情,但不知道有任何开发人员现在正在做这些事情。
I am building a website which I host on Webfaction's most basic plan right now. However, today I got a message one of my processes was killed as it was consuming to much memory.
I anticipate much, much more use of memory and also need a bigger database then I have at webfaction so I looked into switching to another hosting and using webfaction just as dev server.
I looked into AWS EC2 but I think it would be too steep of a learning curve, and am more driven towards Heroku as I see it now.
However, the free version only gets you a 5mb PostgreSQL database. I need much more than that in the future, however not 2 GB the first paid plan offers immediately -- I can't pay $200/month in the beginning.
I got a couple of questions:
Is there an in between plan for databases in Heroku? If not, what's the rationale? -- I don't get it.
I see the MongoDB and CouchDB addons are way cheaper -- I understand they are nosql however and the Django ORM can't really handle it. How easy is it to leave my app as it is and make it work on mongodb or couchdb? (My Django app is now written for Postgres).
Is it possible for the meantime to deploy my Django app on Heroku and connect with my Webfaction postgresql database?
Thanks so much, I'm starting this thing but don't know any dev people that now these things.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我无法回答你所有的问题,但是;
您是否错过了 15 美元的 20Gb 共享计划 - 200 美元用于专用数据库实例,不像 5Mb 和 20Gb 那样共享。
I can't answer all your questions but;
Did you miss the 20Gb Shared plan for $15 - the $200 are for dedicated DB instances not shared like the 5Mb and 20Gb.