【发布时间】:2019-05-06 14:59:23
【问题描述】:
我将我的 rails 应用程序配置为使用 capistrano 进行部署,我认为所有配置都可以 但是当我这样做时:
$ cap production deploy
我什么也得不到!
我愿意:
cap production deploy --trace
这是输出:
** Invoke production (first_time)
** Execute production
** Invoke load:defaults (first_time)
** Execute load:defaults
** Invoke bundler:map_bins (first_time)
** Invoke passenger:bundler:hook (first_time)
** Execute passenger:bundler:hook
** Execute bundler:map_bins
** Invoke rvm:hook (first_time)
** Invoke passenger:rvm:hook (first_time)
** Invoke passenger:test_which_passenger (first_time)
** Execute passenger:test_which_passenger
** Execute passenger:rvm:hook
** Execute rvm:hook
** Invoke rvm:check (first_time)
** Execute rvm:check
** Invoke deploy:set_rails_env (first_time)
** Execute deploy:set_rails_env
** Invoke deploy:set_linked_dirs (first_time)
** Execute deploy:set_linked_dirs
** Invoke deploy:set_rails_env
** Invoke deploy (first_time)
** Execute deploy
** Invoke deploy:starting (first_time)
** Execute deploy:starting
.
.
.
这是痕迹
有什么问题?
我使用乘客和 nginx
【问题讨论】:
-
这还不够,因为我们不知道你的配置是什么样的
-
lock "~> 3.11.0" set :application, "my_app" set :repo_url, "repo" set :user, 'user' set :rvm_type, :system # 默认为: :auto set :rvm_ruby_version, '2.4.0' 设置 :deploy_to, "/home/#{fetch(:user)}/apps/#{fetch(:application)}"
标签: ruby-on-rails deployment capistrano