1

当我运行命令时

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"
4

0 回答 0