I am an absolute newbie to web development and ruby on rails. I am planing to deploy a ror application on the Linode 512 plan. My website would be basically a forum that allows users to upload photos using Ruby 1.9.3 and Rails 3.2.
我是网络开发和ruby on rails的绝对新手。我计划在Linode 512计划上部署一个ror应用程序。我的网站基本上是一个允许用户使用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? What are their difference?
我应该使用Apache还是Nginx?他们有什么区别?
Should I use PostgreSQL, MySQL, MongoDB or any other kinds of DB provided on Linode? What are their difference?
我应该使用PostgreSQL,MySQL,MongoDB或Linode上提供的任何其他类型的数据库吗?他们有什么区别?
My target audience would come from China which means I can't use Amazon S3. Should I let the users upload the photos to the Linode server?
我的目标受众来自中国,这意味着我无法使用Amazon S3。我应该让用户将照片上传到Linode服务器吗?
Is there any step-by-step beginner‘s guide for this issue?
这个问题是否有任何循序渐进的初学者指南?
Thx
3 个解决方案
#1
9
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? What are their difference? Apache. If it is a small website, it doesn't matter for now.
我应该使用Apache还是Nginx?他们有什么区别? Apache的。如果它是一个小网站,现在没关系。
-
Should I use PostgreSQL, MySQL, MongoDB or any other kinds of DB provided on Linode? What are their difference? MySQL. MongoDB is a NoSQL database, may not be for you for the moment.
我应该使用PostgreSQL,MySQL,MongoDB或Linode上提供的任何其他类型的数据库吗?他们有什么区别? MySQL的。 MongoDB是一个NoSQL数据库,暂时可能不适合你。
-
My target audience would come from China which means I can't use Amazon S3. Should I let the users upload the photos to the Linode server? Upload to Linode for now. Don't scale it prematurely.
我的目标受众来自中国,这意味着我无法使用Amazon S3。我应该让用户将照片上传到Linode服务器吗?现在上传到Linode。不要过早地扩展它。
-
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. You should look at @Stefan answer too.
对于所有这些设置,Linode的教程是有益的。你也应该看看@Stefan的回答。
You should also try to deploy to Heroku just to get a feel of it. Rails Tutorial is good for you to learn up from development to deployment.
你也应该尝试部署到Heroku只是为了感受它。 Rails教程有助于您从开发到部署学习。
#2
5
There are several dedicated Rails setup guides on Linode:
Linode上有几个专用的Rails设置指南:
Apache and Passenger:
Apache和Passenger:
- Ruby on Rails with Apache on Debian 6 (Squeeze)
- Ruby on Rails with Apache on Ubuntu 10.04 (Lucid)
- Ruby on Rails with Apache on Ubuntu 10.10 (Maverick)
在Debian 6上使用Apache的Ruby on Rails(Squeeze)
在Ubuntu 10.04上使用Apache的Ruby on Rails(Lucid)
在Ubuntu 10.10上使用Apache的Ruby on Rails(Maverick)
nginx and Passenger:
nginx和乘客:
- Ruby on Rails with Nginx on Ubuntu 10.04 (Lucid)
- Ruby on Rails with Nginx on Ubuntu 10.10 (Maverick)
- Ruby on Rails with Nginx on Debian 5 (Lenny)
- Ruby on Rails with Nginx on CentOS 5
在Ubuntu 10.04上使用Nginx的Ruby on Rails(Lucid)
在Ubuntu 10.10上使用Nginx的Ruby on Rails(Maverick)
在Debian 5上使用Nginx的Ruby on Rails(Lenny)
Ruby on Rails与CentOS 5上的Nginx
#3
1
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
#1
9
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? What are their difference? Apache. If it is a small website, it doesn't matter for now.
我应该使用Apache还是Nginx?他们有什么区别? Apache的。如果它是一个小网站,现在没关系。
-
Should I use PostgreSQL, MySQL, MongoDB or any other kinds of DB provided on Linode? What are their difference? MySQL. MongoDB is a NoSQL database, may not be for you for the moment.
我应该使用PostgreSQL,MySQL,MongoDB或Linode上提供的任何其他类型的数据库吗?他们有什么区别? MySQL的。 MongoDB是一个NoSQL数据库,暂时可能不适合你。
-
My target audience would come from China which means I can't use Amazon S3. Should I let the users upload the photos to the Linode server? Upload to Linode for now. Don't scale it prematurely.
我的目标受众来自中国,这意味着我无法使用Amazon S3。我应该让用户将照片上传到Linode服务器吗?现在上传到Linode。不要过早地扩展它。
-
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. You should look at @Stefan answer too.
对于所有这些设置,Linode的教程是有益的。你也应该看看@Stefan的回答。
You should also try to deploy to Heroku just to get a feel of it. Rails Tutorial is good for you to learn up from development to deployment.
你也应该尝试部署到Heroku只是为了感受它。 Rails教程有助于您从开发到部署学习。
#2
5
There are several dedicated Rails setup guides on Linode:
Linode上有几个专用的Rails设置指南:
Apache and Passenger:
Apache和Passenger:
- Ruby on Rails with Apache on Debian 6 (Squeeze)
- Ruby on Rails with Apache on Ubuntu 10.04 (Lucid)
- Ruby on Rails with Apache on Ubuntu 10.10 (Maverick)
在Debian 6上使用Apache的Ruby on Rails(Squeeze)
在Ubuntu 10.04上使用Apache的Ruby on Rails(Lucid)
在Ubuntu 10.10上使用Apache的Ruby on Rails(Maverick)
nginx and Passenger:
nginx和乘客:
- Ruby on Rails with Nginx on Ubuntu 10.04 (Lucid)
- Ruby on Rails with Nginx on Ubuntu 10.10 (Maverick)
- Ruby on Rails with Nginx on Debian 5 (Lenny)
- Ruby on Rails with Nginx on CentOS 5
在Ubuntu 10.04上使用Nginx的Ruby on Rails(Lucid)
在Ubuntu 10.10上使用Nginx的Ruby on Rails(Maverick)
在Debian 5上使用Nginx的Ruby on Rails(Lenny)
Ruby on Rails与CentOS 5上的Nginx
#3
1
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