Home > dev:web > Installing RefineryCMS on Dreamhost

Installing RefineryCMS on Dreamhost

refineryCMS is a rails3 based CMS(contents management system).
In order to make refinerycms running on the dreamhost, I had to find a way to go around some of the pitfalls.

0. Create an shell user account and a domain with passenger enabled in dreamhost panel.

1. gem install refinerycms
=> This didn’t work in my case, so I had to go around..
gem install stall for a while and didn’t move. hope dreamhost fix it soon.


gem install bundler
Create a Gemfile with this:
source 'http://rubygems.org'
source 'http://rubygems.org'
gem 'refinerycms'
bundle

2. refinerycms myapp
=> This didn’t work either. It gives the sqlite3 error of such

Installing sqlite3 (1.3.3) with native extensions /usr/lib/ruby/1.8/rubygems/installer.rb:482:in `build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)

/usr/bin/ruby1.8 extconf.rb
checking for sqlite3.h... yes
checking for sqlite3_libversion_number() in -lsqlite3... yes
checking for rb_proc_arity()... no
checking for sqlite3_initialize()... no

sqlite3-ruby only supports sqlite3 versions 3.6.16+, please upgrade!

Since I won’t be using sqlite3, I used the following command.
refinerycms myapp -d mysql -u mydbuser -p mydbpassword

3. However, it didn’t give you an option to set the host file. It will create a default rails app but it won’t go any further on database setup. Set up the the database by editing /config/database.yml file.
Set up database name, user name, user password and hostname.

4. Create mysql database in dreamhost way. Use dreamhost panel, create the databases.

5. Run the rake task
bundle exec rake -f "/home/w_starliz_web/www/Rakefile" db:create

6. Generate refinerycms

bundle exec rails generate refinerycms

7. db migration

bundle exec rake db:migrate RAILS_ENV=production

Now the app should be ready for passenger.

8. Open up the refinerycms in the web browser. It should show the refinerycms first login page. Create a user account and set up the site name.

That’s it! Now it will be all the same as the ordinary refineryCMS installation.

Categories: dev:web Tags:
  1. No comments yet.
  1. No trackbacks yet.