Heroku 上的 Rails 3 后端、bluehost 上的网站和电子邮件?

发布于 2024-12-14 05:43:17 字数 552 浏览 5 评论 0原文

好吧,情况是这样的。我已经拥有一个 bluehost 帐户好几年了,并且对此感到非常满意,如果没有充分的理由,我不愿意搬家。然而,我越来越发现,我的一个域的主要用途的最佳解决方案是运行一个相当简单的 Rails 应用程序来覆盖它。

Rails 应用程序可以轻松地通过登陆页面上的两个表单进行前端处理,每个表单都有几个后续页面,但我希望 URL 始终显示“mysite.com”而不是“myapp.heroku.com”。我还想继续在该网站上使用我的电子邮件地址。我预计该应用程序不会被大量使用,并且不太可能在 Heroku 上超过 750 小时/月的空闲时间。

我目前使用 Rails 3,并且在我的想法中可能很难退回到 Rails 2。我也不太擅长在 Rails 中编程,或者其他任何与此相关的东西,所以我不想让自己感到不必要的困惑。

那么我的解决方案是什么?将整个域名转移到 Heroku?在登陆页面中嵌入应用程序的部分内容?我可以保留电子邮件地址与 Heroku 一起使用吗?我可以只将 www.mysite.com 转移到 heroku,但将与该域相关的其他所有内容都转移到 bluehost 吗?

我愿意接受建议。

Okay, here's the situation. I've had a bluehost account for several years and am happy enough with it I'm unwilling to move without a really good reason. However, I'm finding more and more that the best solution to the main use for one of my domains is to have a fairly simple rails app running to cover that.

The rails app could easily be front-ended by two forms on the landing page, each with a couple of follow-up pages, but I want the URL always to show "mysite.com" rather than "myapp.heroku.com". I also want to continue to use my email addresses with this site. I don't expect the app to see heavy usage, and am unlikely to go over the 750 hr/mo free time on heroku.

I currently use Rails 3, and would likely have trouble stepping back to rails 2 in my thinking. I'm also not very good at programming in rails, or anything else for that matter, so I'd like not to confuse myself any more than necessary.

So what's my solution here? Transfer the whole domain to Heroku? Embed partials of the app in the landing page? Can I keep email addresses working with Heroku? Can I transfer just the www.mysite.com to heroku, but have everything else involved with the domain hit bluehost?

I'm open to advice.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

岁月无声 2024-12-21 05:43:17

Heroku 本身不提供任何电子邮件托管/发送 - 因此您可以自带或使用 Heroku 插件之一(例如 SendGrid)从您的应用程序发送邮件。

当然,您可以在 Bluehost 留下您的电子邮件等信息,前提是您可以修改 DNS 并将您的 www 记录更改为 proxy.heroku.com 的 CNAME(在您将自定义域插件添加到 Heroku 应用程序之后)

Heroku doesn't provide any email hosting/sending itself - so you either bring your own or use one of the Heroku addons like SendGrid for sending mail from your application.

Of course, you can just leave you email etc with Bluehost provided that you can modify the DNS and change your www record to be a CNAME to proxy.heroku.com (after you've added the custom domain addon to your Heroku application)

土豪我们做朋友吧 2024-12-21 05:43:17

我刚刚使用 blue 主机和 heroku 进行了此操作,我在 heroku 上托管了我的应用程序,并希望将电子邮件保留在 blue 主机上。我使用的是 DNS Made easy,因此您的情况可能会有所不同,但我必须创建一条指向 IP 地址 69.89.31.63 的 A 记录,您将 A 记录命名为 mail.yourdomain.com
然后创建一条指向 69.89.31.63 的 mx 记录。我在雪松堆上。

I just did this with blue host and heroku where I hosted my app on heroku and wanted to keep email on blue host. I am using DNS Made easy so your mileage may vary but I had to create an A record pointing to the ip address 69.89.31.63, you name the A record mail.yourdomain.com
and then create an mx record pointing to 69.89.31.63. I am on the cedar stack.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文