Installing Mephisto 0.8.2 on Rails 2.2.2

MephistoAfter the hard times with Mephisto, finally, Mephisto 0.8.2 has been released. Although all of previous problems were gone, there might be couple of tricks.

Again, following the link on the announcement post leads to a version that produces some errors while installing. After a while, I decided to give the master branch a try and, surprise, it worked just fine. Here are the steps that worked on Windows and Ubunto (the order is important):

  1. If you didn't already, install Rails 2.2.2:
    gem install -v 2.2.2 rails
  2. Download from github:
    git clone git://github.com/emk/mephisto.git
  3. cd mephisto
  4. Create a secret key for encrypting session cookies:
    rake config/initializers/session_store.rb
  5. Copy config/database.example.yml to config/database.yml and edit the database configuration
  6. Install required gems:
    rake gems:install
  7. Create a database for the current environment:
    rake db:create
  8. Bootstrap the database with basic data and theme:
    rake db:bootstrap
  9. Start the server:
    ruby script/server
  10. Visit http://localhost:3000 and everything should be fine

By the way, if want to run the tests

rake db:create RAILS_ENV=test

you may get this error:

rake aborted!
Unknown database

To solve this, you need to temporarily disable class caching during database creation:

#config/environments/test.rb
config.cache_classes = false

Now, you should be able to run tests:

rake test

Did you like this article? Bookmark it:

Related Articles

4 Comments

  • Thanks so much for writing this up. I tried to install the last version of mephisto just to play around with and get my hands in ruby a bit and gave up. Thanks to the new version and your concise instructions I am up and running in 10 minutes. THANKS!

  • Does anything special need to be taken into account for a mephisto multi-site install? The old directions are giving no love.

  • Thanks Jamie. I'm glad I could help. Actually, I have not tried the multi-site installation before, but you can check these links: http://www.appelsiini.net/2007/6/mephisto-multiple-site-config http://groups.google.com/group/MephistoBlog/browse_thread/thread/983b2c2929c2657c

  • Normally I install blogs via fantasico in cpanel. Can you tell me if installing Mephisto is difficult or would I be better sticking with the likes of WP or Blogger?

Leave a Comment

If you want to post code, do this:
<pre><code class="ruby|javascript|css|html"> your code here </code></pre>