Install Typo from the gem

Typo comes with a nice package and installer that allows to automate your installation.

Things to know before you begin

Before you begin the install, there are few things you need to have and do.

What you need for the installation

You need access to your site and its directory and software to proceed with the installation. These are:

  • An access to your web server via shell
  • A text editor
  • Your favourite web browser

What you need to do for the installation

Begin your installation by checking your web host provides Ruby on Rails hosting. Then:

  • Install the last gem of Typo.
  • Create or ask your web hosting for a production and a test database.
  • Launch Typo installer (maybe both).

Installing Typo

It's the easiest way and the one we would recommend. For this, you need either to be able to install gems on your host or ask your web hosting provider to install it.

  $ sudo gem install typo

If you don't have root access on your hosting server, then try this instead:

  $ export GEM_PATH=~/gems
  $ gem install -i ~/gems typo
  $ ~/gems/bin/typo install /some/path

By default, Typo runs with sqlite, but you can choose to install it on mysql or pgsql as well.

Using MySQL

Ensure you or your hosting provider have installed ruby mysql driver.

  $ typo install some/path database=mysql db_user=my_app db_name=my_app db_host=localhost db_password=password

If you don't have root access on your hosting server, then try this instead:

  $ export GEM_PATH=~/gems
  $ ~/gems/bin/typo install some/path database=mysql db_user=my_app db_name=my_app db_host=localhost db_password=password

Using PgSQL

Ensure you or your hosting provider have installed ruby postgresql driver.

  $ typo install some/path database=postgresql db_user=my_app db_name=my_app db_host=localhost db_password=password

If you don't have root access on your hosting server, then try this instead:

  $ export GEM_PATH=~/gems
  $ ~/gems/bin/typo install some/path database=postgresql db_user=my_app db_name=my_app db_host=localhost db_password=password

Using SQLlite3

Ensure you or your hosting provider have installed ruby sqlite3 driver.

  $ typo install some/path 

If you don't have root access on your hosting server, then try this instead:

  $ export GEM_PATH=~/gems
  $ ~/gems/bin/typo install some/path

Also available in: HTML TXT