Rails CMS 个人blog

Rails 的CMS类型特别多,经过简单比较,选择了refinerycms。 考虑有几点:

1. 性价比,有免费版本100% free and open source ,性能也还不错,拥有它所宣称的一切优点(废话了);

2. 文档详细,http://refinerycms.com/guides;

3. 扩展性好;

4. 该项目本身不断地进行更新维护;

 

制作过程:

1. Installing Refinery Prerequisites

http://www.refinerycms.com/guides/installing-refinery-prerequisites

文档相当的详细,个人是ubuntu,却只需要单独安装ImageMagick

sudo apt-get install imagemagick

 

2.Getting Started with Refinery

 

教程: http://www.refinerycms.com/guides/getting-started-with-refinery/

 

http://www.refinerycms.com/download 安装refinerycms

 

sudo gem install refinerycms

第一次安装出现错误退出,重新运行一次上述命令,成功了。

 

 

3. 根据guide完成Sample APP, 运行命令,OK,搞定了。

 

问题1.

 

/usr/local/ruby/lib/ruby/1.9.1/rubygems/installer.rb:483:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)

/usr/local/ruby/bin/ruby extconf.rb
checking for sqlite3.h... no
sqlite3.h is missing. Try 'port install sqlite3 +universal'
or 'yum install sqlite3-devel' and check your shared library search path (the
location where your sqlite3 shared library is located).
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

sqlite3 .h 不在/usr/include中,导致出错了。

解决方法:http://stackoverflow.com/questions/3458602/sqlite3-ruby-install-error-on-ubuntu

sudo apt - get install libsqlite3 - dev


 

 

4. 完善

 

 

 

5. 部署到Heroku

 

两类型的部署:

1. How to Install Refinery on Heroku

2. if you already have a refinery app you would like to deploy then just deploy as normal according to Heroku’s instructions. You do not need to run the --heroku flag, as all it does is automate some things.

 

 

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值