当我运行命令
时cap deploy:cold
然后在部署过程中我遇到了这些错误:
*** [err :: myapp.com] rake aborted!
*** [err :: myapp.com]
*** [err :: myapp.com] Don't know how to build task 'db:migrate'
*** [err :: myapp.com]
*** [err :: myapp.com]
*** [err :: myapp.com] (See full trace by running task with --trace)
*** [err :: myapp.com]
然后我检查了所有部署的内容 - 我去了发布文件夹,只有这些文件:
LICENSE REVISION lib public tmp
README.markdown Rakefile log spec urbanairship.gemspec
剩下的事情发生了什么(例如 app 文件夹)?
编辑:部署文件:
set :stages, %w(production staging)
set :default_stage, "devel"
require 'capistrano/ext/multistage'
set :application, "myapp"
set :repository, "git@github.com:name/myapp.git"
set :scm, :git
set :deploy_to, "/opt/bitnami/apache2/htdocs/myapp"
set :use_sudo, :false
set :normalize_asset_timestamps, false
before "deploy", "check_production"