Installing Mephisto 0.8.2 on Rails 2.2.2
After 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):
- If you didn't already, install Rails 2.2.2:
gem install -v 2.2.2 rails - Download from github:
git clone git://github.com/emk/mephisto.git cd mephisto- Create a secret key for encrypting session cookies:
rake config/initializers/session_store.rb - Copy config/database.example.yml to config/database.yml and edit the database configuration
- Install required gems:
rake gems:install - Create a database for the current environment:
rake db:create - Bootstrap the database with basic data and theme:
rake db:bootstrap - Start the server:
ruby script/server - 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
- Installing Mephisto 0.8.2 on Rails 2.2.2
- Upgrading InstantRails to Rails 2.2 on Windows
- Running Aptana/Eclipse and InstantRails from a USB Drive
- Thinking Sphinx in Arabic/Unicode
- Thinking Sphinx on Windows








Jamie
August 14th, 2009 - 04:16 AM
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!
Jamie
August 14th, 2009 - 04:27 AM
Does anything special need to be taken into account for a mephisto multi-site install? The old directions are giving no love.
Hatem
August 28th, 2009 - 03:44 PM
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
April
November 21st, 2009 - 05:22 PM
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?