Refinerycms安装

安装

$ gem install refinerycms
Downloading http://ruby.taobao.org/latest_specs.4.8.gz
File already downloaded and cached to /home/panfeng/.rvm/gems/ruby-1.9.3-p0/cache
Downloading http://ruby.taobao.org/specs.4.8.gz
File already downloaded and cached to /home/panfeng/.rvm/gems/ruby-1.9.3-p0/cache
ERROR:  While executing gem ... (Gem::DependencyError)
    Unable to resolve dependencies: refinerycms requires refinerycms-authentication (= 2.0.8), refinerycms-dashboard (= 2.0.8), refinerycms-images (= 2.0.8), refinerycms-pages (= 2.0.8), refinerycms-resources (= 2.0.8)

此时需要分别安装这几个依赖库,然后再安装refinerycms就可以了

refinerycms-i18n也需要安装,否则bundle install会报错

$ gem install refinerycms-i18n

 

创建新项目

$ refinerycms rfcms

如果bundle install出错可能是因为默认使用https://rubygems.org源下载超时

修改Gemfile,使用taobao源再运行一次bundle install

source 'http://ruby.taobao.org'
#source 'https://rubygems.org'

同时,没有找到JavaScript库导致refinerycms中止,错误信息如下:

Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
        rake    db:create
rake aborted!
Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes.
(See full trace by running task with --trace)
    generate    refinery:cms --fresh-installation
/home/panfeng/.rvm/gems/ruby-1.9.3-p0/gems/execjs-1.4.0/lib/execjs/runtimes.rb:51:in `autodetect': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)

解决方法是在Gemfile把Javascript库注释打开,然后重新运行下面的命令

gem 'therubyracer', :platforms => :ruby

$ rails generate refinery:cms --fresh-installation

 

启动

$ rails server

 

参考

http://refinerycms.com/guides/with-an-existing-rails-app/

http://refinerycms.com/guides/getting-started

转载于:https://www.cnblogs.com/scige/archive/2012/08/30/2664658.html

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值