繁体   English   中英

使用Capistrano部署Rails应用程序期间的符号链接警告

[英]symlink warning during rails app deploy with capistrano

我在尝试使用capistrano部署Rails应用程序时收到警告,对此感到困惑。 警告如下:[弃用警告]此API已更改,请钩住deploy:create_symlink而不是deploy:symlink

谁能向我解释capistrano想要做什么? 以及如何解决这个问题? 任何帮助将不胜感激!

哦,这是我的部署文件。

$:.unshift(File.expand_path('./lib', ENV['rvm_path'])) # Add RVM's lib directory to the load path.
require "rvm/capistrano"                  # Load RVM's capistrano plugin.

set :application, "Project"

set :scm, "git"
set :repository,  "ssh://git@server.project.ca/usr/local/git_root/project.git"
set :user, "deploy"

#set :rvm_bin_path, "/usr/local/rvm/bin"
set :rvm_ruby_string, "ruby-1.9.2-p290@project"
set :normalize_asset_timestamps, false

ssh_options[:forward_agent] = true

set :branch, "master"

set :deploy_via, :remote_cache
set :deploy_to, "/usr/local/www/sites/project.example.ca/public/"

set :use_sudo, false

set :domain, 'project.example.ca'

role :app, domain
role :web, domain
role :db,  domain, :primary => true

今天也遇到了这个警告。 同意andrew的意见,警告可能不是您的问题(如果您的部署文件具有钩到deploy:symlink的链接,则可能会引起警告)。

如果您仍然对capistrano的操作感兴趣,则可能是2.11.2版本的更改,以确保deploy:symlink发出弃用警告: https : //github.com/capistrano/capistrano/issues/164

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM