[英]Setting up Ruby on rails web application on Linode
I am an absolute newbie to web development and ruby on rails. 我绝对是Web开发和Rails上的红宝石的新手。 I am planing to deploy a ror application on the Linode 512 plan.
我打算在Linode 512计划上部署ror应用程序。 My website would be basically a forum that allows users to upload photos using Ruby 1.9.3 and Rails 3.2.
我的网站基本上是一个论坛,允许用户使用Ruby 1.9.3和Rails 3.2上传照片。
Which OS should I use? 我应该使用哪个操作系统? What are their difference?
他们有什么区别? (Ubuntu / Debian / CentOS / Fedora)
(Ubuntu / Debian / CentOS / Fedora)
Should I use Apache or Nginx? 我应该使用Apache还是Nginx? What are their difference?
他们有什么区别?
Should I use PostgreSQL, MySQL, MongoDB or any other kinds of DB provided on Linode? 我应该使用PostgreSQL,MySQL,MongoDB还是Linode提供的任何其他类型的数据库? What are their difference?
他们有什么区别?
My target audience would come from China which means I can't use Amazon S3. 我的目标受众来自中国,这意味着我无法使用Amazon S3。 Should I let the users upload the photos to the Linode server?
我应该让用户将照片上传到Linode服务器吗?
Is there any step-by-step beginner's guide for this issue? 是否有针对此问题的分步入门指南?
Thx 谢谢
First of all, I think you are worrying too much. 首先,我认为您太担心了。 If you are a newbie, just follow the popular choice for a start, then change, modify, scale as you go.
如果您是新手,只需遵循流行的选择作为开始,然后随时进行更改,修改和扩展。 As your skills mature, you will know what best suites you.
随着技能的成熟,您将了解最适合您的软件。
Below are some choices that will be easier for you: 以下是一些更方便您的选择:
Which OS should I use? 我应该使用哪个操作系统? What are their difference?
他们有什么区别? Ubuntu
的Ubuntu
Should I use Apache or Nginx? 我应该使用Apache还是Nginx? What are their difference?
他们有什么区别? Apache.
阿帕奇 If it is a small website, it doesn't matter for now.
如果这是一个小型网站,那么现在就无关紧要了。
Should I use PostgreSQL, MySQL, MongoDB or any other kinds of DB provided on Linode? 我应该使用PostgreSQL,MySQL,MongoDB还是Linode提供的任何其他类型的数据库? What are their difference?
他们有什么区别? MySQL.
MySQL的。 MongoDB is a NoSQL database, may not be for you for the moment.
MongoDB是一个NoSQL数据库,可能暂时不适合您。
My target audience would come from China which means I can't use Amazon S3. 我的目标受众来自中国,这意味着我无法使用Amazon S3。 Should I let the users upload the photos to the Linode server?
我应该让用户将照片上传到Linode服务器吗? Upload to Linode for now.
现在上传到Linode。 Don't scale it prematurely.
不要过早扩展它。
Is there any step-by-step beginner's guide for this issue? 是否有针对此问题的分步入门指南? Ryan's RailsCasts: http://railscasts.com/episodes/373-zero-downtime-deployment and http://railscasts.com/episodes/335-deploying-to-a-vps , they are must-watch, but not free.
瑞安(Ryan)的RailsCasts: http : //railscasts.com/episodes/373-zero-downtime-deployment和http://railscasts.com/episodes/335-deploying-to-a-vps ,它们是必看的,但不是免费的。
For all these setup, Linode's tutorial is good for a start. 对于所有这些设置, Linode的教程非常适合作为入门。 You should look at @Stefan answer too.
您也应该查看@Stefan答案。
You should also try to deploy to Heroku just to get a feel of it. 您还应该尝试将其部署到Heroku ,以便对此有所了解。 Rails Tutorial is good for you to learn up from development to deployment.
Rails教程非常适合您从开发到部署的学习。
There are several dedicated Rails setup guides on Linode: Linode上有一些专用的Rails设置指南:
Apache and Passenger: 阿帕奇和乘客:
nginx and Passenger: Nginx和乘客:
As we have many linode deployment for rails apps my recommendation would be: 由于我们为Rails应用部署了许多linode,因此我的建议是:
ubuntu/centos + mysql/postgres + nginx + passenger
If your application is going to have huge fb inout operations then you can mongodb
as choice 如果您的应用程序要进行大量的fb inout操作,则可以选择
mongodb
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.