Deploy Rails 4.x Use Capistrano 3.x

部署使用的账号 要把ruby的PATH 添加到 ~/.bashrc 目录

~/.bashrc

1
set :bundle_flags, '--quiet'
1
2
3
4
5
6
7
8
9
10
11
DEBUG [ec59288d]        The --deployment flag requires a Gemfile.lock. Please make sure you have checked
DEBUG [ec59288d]        your Gemfile.lock into version control before deploying.

need Gemfile.lock
capistrano   your Gemfile.lock into version control before deploying.


 INFO [76a73a08] Running /usr/bin/env rake assets:precompile on izstudy.com
DEBUG [76a73a08] Command: cd /var/www/izmeeting/releases/20131102010425 && ( RAILS_ENV= /usr/bin/env rake assets:precompile )
DEBUG [76a73a08]        rake aborted!
DEBUG [76a73a08]        database configuration does not specify adapter

bundle config --delete bin # Turn off Bundler's stub generator

Comments