小编pat*_*den的帖子

/ usr/bin/env ruby​​没有这样的文件或目录:使用capistrano 3,capistrano/rbenv,capistrano/bundler和capistrano/rails(使用rails 4)

我正在使用capistrano,capistrano/rbenv,capistrano/bundler和capistrano/rails.我在capistrano编译资产的步骤中收到此错误:

DEBUG [49a50df6]    /usr/bin/env:
DEBUG [49a50df6]    ruby
DEBUG [49a50df6]    : No such file or directory
DEBUG [49a50df6]
Run Code Online (Sandbox Code Playgroud)

在生产服务器上/usr/bin/env ruby -v是正确的.我知道这一点:为什么 - 做什么 - 在我的ssh-session-work-but-not-in-capistrano中工作 但是我无法让它工作.

这是我的Capfile:

# Load DSL and Setup Up Stages
require 'capistrano/setup'

# Includes default deployment tasks
require 'capistrano/deploy'

# Includes tasks from other gems included in your Gemfile
#
# For documentation on these, see for example:
#
#   https://github.com/capistrano/rvm
#   https://github.com/capistrano/rbenv
#   https://github.com/capistrano/chruby
#   https://github.com/capistrano/bundler
#   https://github.com/capistrano/rails/tree/master/assets
#   https://github.com/capistrano/rails/tree/master/migrations
# …
Run Code Online (Sandbox Code Playgroud)

ruby capistrano ruby-on-rails

27
推荐指数
4
解决办法
3万
查看次数

标签 统计

capistrano ×1

ruby ×1

ruby-on-rails ×1