Capistrano部署错误:未设置阶段

 woooooso_776 发布于 2023-02-11 12:16

我按照本教程设置了rvm,ruby,rails,nginx和passenger.然后我安装了capistrano和node.js. 现在,一切正常,直到我尝试部署*test_app.*

cap deploy:setup

创建以下错误:

[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
Stage not set, please call something such as `cap production deploy`, where production is a stage you have defined.

现在

cap production deploy

创建此错误:

cap aborted!
RVM - Capistrano integration was extracted to a separate gem, install: `gem install rvm-capistrano` and remove the `$LOAD_PATH.unshift` line, note also the 'set :rvm_type, :user' is now the default (instead of :system).
/home/USER/.rvm/lib/rvm/capistrano.rb:3:in `'
config/deploy.rb:5:in `'
/home/USER/.rvm/gems/ruby-2.0.0-p353/gems/capistrano-3.0.1/lib/capistrano/setup.rb:12:in `load'
/home/USER/.rvm/gems/ruby-2.0.0-p353/gems/capistrano-3.0.1/lib/capistrano/setup.rb:12:in `block (2 levels) in '
/home/USER/.rvm/gems/ruby-2.0.0-p353/gems/capistrano-3.0.1/lib/capistrano/application.rb:12:in `run'
/home/USER/.rvm/gems/ruby-2.0.0-p353/gems/capistrano-3.0.1/bin/cap:3:in `'
/home/USER/.rvm/gems/ruby-2.0.0-p353/bin/cap:23:in `load'
/home/USER/.rvm/gems/ruby-2.0.0-p353/bin/cap:23:in `
' /home/USER/.rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:in `eval' /home/USER/.rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:in `
' Tasks: TOP => production (See full trace by running task with --trace)

所以我做了所建议的,安装了rvm-capistrano并删除了*$:.unshift(File.expand_path('./ lib',ENV ['rvm_path']))*,这产生了以下错误:

cap production deploy
cap aborted!
Unable to activate rvm-capistrano-1.5.1, because capistrano-3.0.1 conflicts with capistrano (~> 2.15.4)
config/deploy.rb:5:in `'
/home/USER/.rvm/gems/ruby-2.0.0-p353/gems/capistrano-3.0.1/lib/capistrano/setup.rb:12:in `load'
/home/USER/.rvm/gems/ruby-2.0.0-p353/gems/capistrano-3.0.1/lib/capistrano/setup.rb:12:in `block (2 levels) in '
/home/USER/.rvm/gems/ruby-2.0.0-p353/gems/capistrano-3.0.1/lib/capistrano/application.rb:12:in `run'
/home/USER/.rvm/gems/ruby-2.0.0-p353/gems/capistrano-3.0.1/bin/cap:3:in `'
/home/USER/.rvm/gems/ruby-2.0.0-p353/bin/cap:23:in `load'
/home/USER/.rvm/gems/ruby-2.0.0-p353/bin/cap:23:in `
' /home/USER/.rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:in `eval' /home/USER/.rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:in `
' Tasks: TOP => production (See full trace by running task with --trace)

有任何想法吗?

撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有