In order to install Refinery CMS, the first thing you need to do is get RVM and Ruby installed:
\curl -L https://get.rvm.io | bash -s stable
rvm install ruby
Now we need to install MySql and imagemagick:
sudo apt-get install mysql-client mysql-server libmysqlclient-dev imagemagick
Now install Rails and the refinerycms gem:
gem install refinerycms
Then, create a new Rails (note that refinerycms does not yet work with Rails 4) project using the refinerycms template:
rails _3.2.19_ new my_app -m http://refinerycms.com/t/2.1.0
Finally, create a Refinery application with:
We can start it with:
It should now be visible at http://your.ip.address:3000/refinery
For more information on getting Refinery CMS up and running, check out their documentation.
For more information on how to deploy a Ruby on Rails appplication in production, check out this tutorial: How To Deploy a Rails App with Passenger and Nginx on Ubuntu 14.04
This tutorial explains how to install RVM (Ruby Version Manager), and then how to install ruby, how to install ruby gems, and how to install rails on Ubuntu 12.04. RVM is a program that lets you use several versions of Ruby on one server and easily switch between them.