Mephisto 0.8 (Drax) Quick Install

// March 20th, 2009 // Rails

If you are not a programmer, I recommend you use a different blogging engine, because even after the install is a success. You’ll still need to edit the template of your choice to get it just right. I am still not done editing this template. Installing Mephisto 0.8 (Drax) is not exactly the easiest thing to do. However, I have managed to do it twice in the last month. So here is the process to save hackers out there some time. There are a couple of requirements that you will need before proceeding with the install.

  1. Rails 2.0.2
  2. tzinfo (I have 0.3.9)
  3. At least rake 0.8.1

Installing Rails 2.0.2

This should also install rake for you. Just in case I have the command below.

sudo gem install rails -v=2.0.2

Installing tzinfo

sudo gem install tzinfo

Installing Rake

sudo gem install rake

From here change directory to the home of your rail applications.
Now run the command:

sudo wget http://github.com/technoweenie/mephisto/tarball/master.tar.gz
sudo tar -xvf technoweenie-mephisto-90e2cc253d94e2e544bc8b21f361c7360c1e9baa.tar.gz
sudo mv technoweenie-mephisto-90e2cc253d94e2e544bc8b21f361c7360c1e9baa blog

The last command simply renames the directory to something more readable. Here I renamed it to “blog”. This will be the mephisto root directory. OK! You now have all the things to need to start the installation. From here on is where I ran into all the trouble. Not to worry, I ironed out all the kinks so you should be OK!

Installation in 8 easy steps

  1. Create a database named mephisto (or one of your choosing).If you are running mysql, you can do this at the command prompt. This assumes your localhost root does not have a password.
  2. mysql -u root
    mysql> create database mephisto;
    
  3. Copy config/database.example.yml to config/database.yml
    Just copy and past the following command from the config directory.
  4. sudo mv database.example.yml database.yml
    
  5. Edit database.yml and set your database credentials.
  6. This step is important. Edit config/environment.rb
    and append the following line. This step will save you trouble when running the rake db:bootstrap command two steps down.
  7. RAILS_GEM_VERSION = '2.0.2' unless defined? RAILS_GEM_VERSION
    
  8. Time to update your boot.rb file. From your mephisto root directory, run the following command.
  9. rake rails:update
    
  10. OK! Time for the big moment! Are you ready? It’s time to bootstrap your database. Run the following command from your mephisto root directory.
  11. rake db:bootstrap RAILS_ENV=production
    
  12. If you got to this step without troubles, then consider this a big win! The next step is to deploy mephisto, I recommend mod_rails.
  13. Last step! Login to your administration at http://domain.com/admin with the username: admin and password: test

That is all there is to it. I hope everything went OK for you. Any questions or comments are welcomed.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • StumbleUpon
  • Yahoo! Buzz

Leave a Reply

-->

Categories