Rails Setup
etc.
Ideally I want a repository such as dotdeb to manage this. Luckily I found this:
So this is probably how I will link Ruby on Rails up with the Nginx server. However I am still not sure about the latest version of Ruby Gems or a repository that contains all of this. Apparently the debian version of gems is to old?
Any insight would be outstanding for this Rails server setup noob.
Current setup:
Debian 6 Linode 512 (will be upgraded to a 768 soon)
Monit
Fail2ban
No ftp
Dotdeb repository:
Nginx
PHP
MySQL
5 Replies
You might need to modify those scripts to suit your needs, but it will at least get you started with ruby 1.9.2, rails, bundler, passenger, git, and some other stuff you will likely need.
If you use REE then you can keep it separate from your distribution's version.
Also look at Capistrano for deployment, which make sure you do it the same way all the time and gives an easy rollback.
I will definitely check out Ruby Enterprise Edition on my dev box this weekend. This is very helpful. I hear a lot about Capistrano as well. So I will check this out to.
Thanks for the info!
So far I have:
Put dotdeb in my sources.list and installed nginx-extras which includes Passenger
Installed RVM as root, and set Ruby 1.9.2 to be the default.
In most/all tutorials I've found, one is instructed to install Passenger via the Gem. Is there any advantage to having Passenger installed via dotdeb's package, or should I be installing Passenger via a gem as I have Ruby installed via RVM?
If I stick to the dotdeb package version of Passenger, I think I need to read up on configuring it next… any pointers on that appreciated.