何时开始考虑部署我的 Rails 应用程序

发布于 2024-11-03 21:52:34 字数 366 浏览 1 评论 0原文

我一直在测试一个应用程序并已完成所有功能。作为我第一次尝试 ror,我对下一步有一些疑问;感谢您对此的指导。

我应该在将应用程序上线之前还是之后完成所有设计和 UI?

在尝试研究这个问题的过程中,我发现了三样东西不断成为帮助部署的优秀工具:Heroku、Capistrano 和 Phusion Passenger。我知道 Heroku 让您可以快速轻松地进行部署,但是如果我希望我的应用程序位于其自己的 URL 上,这是这个选项吗?我目前在 Hostmonster 上托管其他网站 (Wordpress),但他们还不支持 Rails 3。

Passenger 和 Capistrano 的功能有什么区别?我一直在搜索,但不知道一些术语,我不知道如何解读所有这些术语。

I have been testing an app and have all of the functionality worked out. Being my first go with ror I have a few questions about my next step; grateful for direction on this.

Should I do all of the design and UI before putting my app online, or after?

In trying to research this I have found three things that keep coming up as great tools to help deploy - Heroku, Capistrano, and Phusion Passenger. I know Heroku let's you deploy quickly and easily, but is this the option if I want my app at it's own URL? I currently host other websites (Wordpress) at Hostmonster, but they aren't supporting Rails 3 yet.

What is the difference between the functionality of Passenger and Capistrano? I have been searching, but not knowing some of the terminology, I'm not sure how to decipher all of it.

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

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

发布评论

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

评论(2

一念一轮回 2024-11-10 21:52:34

使用 Heroku — 无需用所有托管内容来扰乱您的大脑,因为您还不知道它。 Heroku 很棒,您可以轻松拥有自己的域名。将您的域名服务器指向 a.ns.zerigo.net 和 b.ns.zerigo.net 并运行...

heroku addons:add zerigo_dns
heroku domains:add example.com
heroku domains:add www.example.com

将您域的 DNS 服务器设置为 a.ns.zerigo.netb.ns。 zerigo.net

完成后,您就可以在 Heroku 上部署了。您的第一个 dyno(应用程序实例)是免费的,Zerigo 的基本 dns 是免费的。您将使用 2TB/带宽(软限制)和大量请求服务,总计 0 美元和 15 分钟。

对于部署,从这里开始到结束(前提是您在 Heroku 平台的限制内进行开发 [即只读文件系统、PostgreSQL、依赖于捆绑器]):

heroku create yourapp
git push heroku master
heroku open  # opens yourapp.herokuapp.com in your default browser

如果您需要配置 DNS 记录:

heroku addons:open zerigo_dns

这就像魔术一样,但它是一切都只是坚实的工程。

需要明确的是,我不为 Heroku 工作。

Go with Heroku — there's no need to clutter your brain with all of the hosting stuff since you don't already know it. Heroku is great, and you can easily have your own domain name. Point your nameservers to a.ns.zerigo.net and b.ns.zerigo.net and run…

heroku addons:add zerigo_dns
heroku domains:add example.com
heroku domains:add www.example.com

Set your domain's DNS servers to a.ns.zerigo.net and b.ns.zerigo.net.

And done deal, you're ready to deploy on Heroku. Your first dyno (app instance) is free, Zerigo's basic dns is free. You're rolling with 2TB/bandwidth (soft limit) and a whole lotta request-serving for a grand total of $0 and 15 minutes.

And for deployment, from start to finish here (provided you develop within the limitations of Heroku's platform [ie. read-only filesystem, PostgreSQL, bundler-dependent]):

heroku create yourapp
git push heroku master
heroku open  # opens yourapp.herokuapp.com in your default browser

If you need to configure your DNS records:

heroku addons:open zerigo_dns

It's like magic, but it's all just solid engineering.

And to be clear, I don't work for Heroku.

等待我真够勒 2024-11-10 21:52:34

是否在上线之前完成 UI 设计是您必须做出的决定。我认为这不会产生任何与 Rails 部署相关的后果。因此,如果您想快速部署和发布,那就继续吧。

即使您使用 heroku 托管,您也应该能够使用自己的域名。看看这个

Capistrano 可让您轻松部署应用程序。因此,您不必登录到远程服务器并从 git 提取代码、重新启动服务等。您只需从工作站运行 cap 部署,所有内容都将部署在您的服务器上,并且所有服务都将重新启动。 。ETC。

而passenger类似于mod_php。它托管您的应用程序。它适用于 apache 或 nginx。您很可能最终会同时使用 capistrano 和乘客。我不认为它们具有可比性,因为它们做两件不同的事情。

Whether to finish your UI designing before going live is a decision you have to make. I don't think this will have any rails - deployment related consequences. So if you want to deploy and release fast in a rapid manner, go ahead.

You should be able to use your own domain name even if you are hosting with heroku. Take a look at this

Capistrano lets you deploy your apps with ease. So you don't have to login to your remote server and pull code from git, restart services...etc etc. You can just run cap deploy from your workstation and everything will be deployed on your server and all services will be restarted..etc.

While passenger is something like mod_php. It hosts your application. It works with apache or nginx. You will most probably end up using both capistrano and passenger. I don't think they are comparable because they do two different things.

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