Skip to content
jinleileiking edited this page Sep 13, 2010 · 4 revisions
  • Quick Installation
  1. Create a database named mephisto (or one of your choosing).
    1. Copy config/database.example.yml to config/database.yml
    2. Edit database.yml and set your database credentials.
    3. Upload the entire mephisto directory to your webserver.
  2. Make sure you upload the tzinfo gem (see above) with the directory, or that your host has it preinstalled.
  3. Run rake db:bootstrap from a terminal of some sorts (use rake db:bootstrap RAILS_ENV=production to be sure you’ve bootstrapped the production database.) %
  4. Login to your administration at http://domain.com/admin with the username: admin and password: test
  • Problem:
  1. You need to run ‘rake config/initializers/session_store.rb’ to create a (RuntimeError) secret key for encrypting session cookies.
    - run rake db:bootstrap
  2. Needed Gems:
    1. liquid 1.9.0 -- rubyforge 1.0.4 — hoe 2.3.2
    2. mysql
  3. can not find the module during rake db:bootstrap
    http://www.xiuce888.cn/2009/07/19/rails找不到指定的模块-extmysqlso-解决办法/
    rails找不到指定的模块 ext/mysql.so 解决办法
    如果是先安装ruby 和rails,后安装mysql,可能会出现如下错误
    找不到指定的模块。 – c:/ruby/lib/ruby/gems/1.8/gems/mysql-2.7.3-x86-mswin32/ext/mysql.so
    实际上是找不到连接所需的dll文件:libmySQL.dll
    在mysql安装目录下的bin目录下将此文件复制到ruby的bin目录下即可解决此问题.
  4. creating artical meet 500 error
    @article = current_user.articles.create params[:article].merge(:updater => current_user, :site => site) -- crash here..
Clone this wiki locally