- 论坛徽章:
- 0
|
http://86915.hostmyapplications.com/articles/2006/05/11/%E5%85%8D%E8%B2%BB-rails-%E4%B8%BB%E6%A9%9F%E5%8F%8A-typo-%E5%AE%89%E8%A3%9D
http://www.dev411.com/wiki/Installing_Typo:_MySQL%2C_FastCGI%2C_Apache_and_lighttpd
$ wget http://www.typosphere.org/tarballs/typo-2.6.0_with-rails.tgz
$ tar -xzf typo-2.6.0_with-rails.tgz
$ mv typo-2.6.0_with-rails typo
$ cd typo
修改db/schema.mysql.sql,在最前面加一行SET NAMES UTF8
$ vi db/schema.mysql.sql
SET NAMES UTF8
先建一个typo的库,
$ mysql -h192.168.1.2 -uroot -pmysql typo - 設定 typo 和資料庫, 修改 config/database.yml 內容如下
$ vi config/database.yml
改所有的database :typo
改login: &login
adapter: mysql
host: 192.168.1.2
username: root
password: mysql
其實下載的 typo 有問題, 是不會動的 typo 版本, 請重新抓 Rails 1.0 版本
$ rm -rf vendor/rails
$ yum install subversion
$ svn export http://dev.rubyonrails.org/svn/rails/tags/rel_1-0-0 vendor/rails
$ ln -s /root/typo/public /var/www/blog
$ ./script/server or $./script/server -e production
登录: http://ip:3000
Typo Themes Viewer
http://www.dev411.com/typo/themes/
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/7869/showart_140304.html |
|