centos5で配布用ALB2をつくるためのメモ

Post date: 2015/02/20 11:41:28

bundle install を実行したところ、yum sqlite-develする必要があった。

bundle exec rails -e productionで、以下のエラー

/usr/local/anagix_tools/lib/ruby/gems/2.1.0/gems/dryml-2.1.0/lib/dryml/taglib.rb:53:in `taglib_filenames': No such taglib: taglibs/auto/rapid/cards {:src=>"taglibs/auto/rapid/cards", :type=>:include, :template_dir=>"app/views/taglibs", :source_template=>"app/views/taglibs/front_site.dryml"} (Dryml::DrymlException)

これは、app/views/taglibs/auto以下ができてないのが原因なので、rake assets:precompile を実行する。export RAILS_ENV=productionしておくのを忘れないこと。

gemはvenderにはおかず、/usr/local/anagix_tools/lib/ruby/gemsにおくことにする。

なので、 bundle install --no-deployment