install refinery_cms using mysql

访问量: 1290

refinery_cms is not bad. I have been using it for my personal website(, aka, its default database is sqlite3. this guide will show you how to install it under mysql.

step1. $ gem install refinery cms  (following it official guide)

step1.1 $ gem install sass-rails -v 3.2.3 

setp1.2 $ apt-get install libsqlite3-dev 

step 1.9 $ refinerycms yangqigong (using the  default settings)

step2. $ vim Gemfile , config/database.yml, using mysql content. e.g.

# Gemfile:
 gem 'rails', '3.2.15'
 gem 'mysql2', '0.2.6'

# database.yml
  adapter: mysql2
  encoding: utf8
  reconnect: false
  database: yangqigong_development
  #database: yangqigong_development_two
  pool: 5
  username: root
  password: ""
  host: localhost

Step3. $ bundle install && bundle exec rake db:create && bundle exec rake db:migrate

it's done. run 'bundle exec rails s' will start your application. 

订阅/RSS Feed