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.