Mephisto Hosting: How to deploy Mephisto on HostingRails.com
This is a wiki article created by HostingRails users. Please login or signup to make edits.
Here is what not to do when installing Mephisto
Don't get mephisto working on your local box then upload the files. It doesn't work.
I didn't upload the whole Mephisto rails app, just followed the tutorials, got the .htaccess and dispatcher.fcgi files right. But for some reason rails wasn't finding gems and plugins in the vendor directory. Tried a whole lot of things to move forward but it didn't work.
Here is what did work:
At the command line at root:
svn co http://svn.techno-weenie.net/projects/mephisto/tags/rel-0.7.3 my_mephisto_app
Most mephisto install examples call '.../mephisto/trunk' but i didn't want the latest, i wanted the latest stable release which according to this page http://www.mephistoblog.com/download is 0.7.3Create a database and database user (i did this thru cpanel).
Add the database name, user and password to database.yml and remove everything but 'production'.
Uncomment this line in \config\environment.rb
ENV['RAILS_ENV'] ||= 'production'
no need to change routes.rbFreeze rails 1.2.6. This is necessary for Mephisto to install/operate correctly.
rake rails:freeze:edge TAG=rel_1-2-6
At the commandline in ~/my_mephisto_app create your database tables and data (it copies themes as well). Like this
rake db:bootstrap RAILS_ENV=production
Update .htaccess in \public by commenting out
# AddHandler fastcgi-script .fcgi
and changing rewrite rule toRewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
(both of these changes are from this tutorial )Grab a correct dispatch.fcgi:
At the command line from root i ran 'rails sbtest' to create a dummy rails app, copied the dispatch.fcgi file from \sbtest\public to \my_mephisto_app\public
All done! Browse to your new Mephisto app.
I setup mephisto as an addon domain so i also did the symlinking from this tutorial
http://www.hostingrails.com/forums/wiki_thread/6
and here is the mephisto install i loosely followed
http://mephisto.stikipad.com/help/show/Installing+Mephisto
I didnt freeze rails to edge as mephisto runs on rails 1.2 and rails 1.2 is now out and installed on HostingRails.com accounts.
I hope your mephisto install is hair pulling free :)
If you are looking for themes, I ported a bunch and can be downloaded from http://railsgrunt.com/mephisto-themes
just download, unzip, and upload the folder to your themes directory. thanks.
There is a problem with Mephisto comments when combined with Apache. The problem being you can add a maximum of only 1 comment per blog post. The reason is described here.
The solution described is to add
DirectorySlash Off
to the end of your public/.htaccess file."
Nolemon
Mixplate
William
Imsodef