免费注册 查看新帖 |

Chinaunix

广告
  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 643 | 回复: 0
打印 上一主题 下一主题

typo install [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-07-13 19:07 |只看该作者 |倒序浏览

               
               
                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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP