我正在使用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)