Create your blog with TYPO
Created: 11/13/2008
General Information
Typo is a Ruby on Rails application and in this article you can find how to install Typo v. 4.1.1 easily in a few steps on FreeBSD 6/7.Requirement
The only requirement is to have already installed in your machine Ruby, Ruby on rails and some other required gems by Typo (mongrel, mysql, mysql, rcov, rspec, xmpp4r, flexmock, hoe, ruby-debug and ruby-debug-base). Follows my local gem complete list with package name & version :Installation
Let's start building our Typo-4.1.1 blog:| $ | fetch http://rubyforge.org/frs/download.php/20466/typo-4.1.1.tgz |
|
$ $ |
cd my-rails-work-dir tar -zxvf typo-4.1.1.tgz |
| $ | mv typo-4.1.1 MyWonderfulBlog |
Configuration
Go in ~/MyWonderfulBlog/config/ and copy database.yml.example as database.yml| $ | cp database.yml.example database.yml |
Note: The application is already developed so you can choose to work directly in production environment. Truely, there is no need to select development, but if you do so, there is always an easy way to switch from development to production environment. If you prefer to work in development environment just replace prod with dev in the following steps.
Let's check database.yml with our favorite editor. In production environment you'll only need to leave the production section. I'll change the database names - I'll use more than one blogs in the same system - so I don't want my databases to have the same name. I'll use a safe mysql username & password as the following:|
production: adapter: mysql encoding: utf8 database: wonderfulblog_prod username: safesql password: mysqlko9 socket: /tmp/mysql.sock |
| $ | mysqladmin -u root -p create wonderfulblog_prod |
|
$ mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or g. Your MySQL connection id is xxx Server version: 5.0.51a FreeBSD port: mysql-server-5.0.51a Type 'help;' or 'h' for help. Type 'c' to clear the buffer. mysql> grant all privileges on wonderfulblog_prod.* to 'safesql'@'localhost' identified by 'mysqlko9'; Query OK, 0 rows affected (0.09 sec) mysql> flush privileges; Query OK, 0 rows affected (0.05 sec) mysql> q Bye |
| $ | rake migrate RAILS_ENV='production' |
Note: In development environment use simply "rake migrate"
Rake will extract all necessary items in your database.| $ | mongrel_rails start -d -p 8921 -e production |


This guide is © 2008 - 2010 Vaggelis Typaldos.
Author: Vaggelis Typaldos
vtypal at gmail dot com