Capistrano和EC2:不知道如何构建任务'db:migrate'

时间:2013-05-02 18:01:29

标签: ruby-on-rails ruby deployment amazon-ec2 capistrano

当我运行命令

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"

0 个答案:

没有答案