Typo installation on Site5

From Julian Yap

Site5 provides Ruby on Rails web applications such as Typo to be installed. These are my notes on getting it working and basic usage.

Site5 is my current Web hosting provider. I highly recommend them.

If you would like to consider joining Site5, please click on my affiliate link here.

Instructions

mkdir $HOME/apps
or
mkdir /home/$USER/apps
  • Upload typo in the apps dir. (So you end up with something like apps/typo)
  • Edit config/database.yml to reflect your database info. (Just add the production details in.)
  • Edit config/environment.rb changing RAILS_ENV to 'production'. This specifies what database settings the rails app uses.
  • From SSH run:
mysql -u USER -p USER_dbname < /home/USER/apps/typo/db/schema.mysql.sql
  • From SSH:
ln -s $HOME/apps/typo/public $HOME/public_html/blog
  • Edit public/.htaccess to reflect rewrite base (/blog in this case). Uncomment line:
RewriteBase /blog
  • If the server you're on has FastCGI installed you're all done. If not, again in public/.htaccess change dispatch.fcgi to dispatch.cgi.
  • Browse to http://website/blog/ and create yourself an account.

Site5 specific

Typo 2.5.6 requires Rails version > 0.13.1. If a lesser version of Rails is intalled, certain functionality may not work, such as

My particular server had version 0.13.0 of Rails running.

> ls /usr/lib/ruby/gems/1.8/cache/rails*
/usr/lib/ruby/gems/1.8/cache/rails-0.13.0.gem

A support request to upgrade Rails should have your version of Rails upgraded.

Notes

Modified from forum posts: 1, 2