0
非常に正直ですが、エラーは何ですか? 私のマシンはサーバに対して正しく認証されていますが、cap production deployコマンドを実行するたびに次のエラーが出ます。すべて試しましたが、このエラーを解決できませんでした。cap production deploy 'rvm ruby ...'エラー
助けてください!
エラー:
[email protected]:~/Desktop/work$ cap production deploy
rvm 1.29.3 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]
ruby-2.3.1
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as [email protected]: ruby exit status: 1
ruby stdout: Please note that `rvm ruby ...` was removed, try `ruby 2.3.1p112 do ruby --version` or `rvm all do ruby 2.3.1p112 do ruby --version` instead.
Run `rvm help` to see usage information
ruby stderr: Nothing written
SSHKit::Command::Failed: ruby exit status: 1
ruby stdout: Please note that `rvm ruby ...` was removed, try `ruby 2.3.1p112 do ruby --version` or `rvm all do ruby 2.3.1p112 do ruby --version` instead.
Run `rvm help` to see usage information
ruby stderr: Nothing written
Tasks: TOP => rvm:check
(See full trace by running task with --trace)
`
deploy.rb:
lock "3.9.1"
set :application, 'pecul'
set :repo_url, '[email protected]:peculcommunity/Pecul.git' # Edit this to match your repository
set :branch, :master
set :deploy_to, '/home/deploy/pecultest'
set :pty, true
set :linked_files, %w{config/database.yml config/application.yml}
set :linked_dirs, %w{bin log tmp/pids tmp/cache tmp/sockets vendor/bundle public/system public/uploads}
set :keep_releases, 5
set :rvm_type, :user
set :rvm_ruby_version, 'ruby 2.3.1p112'
set :puma_rackup, -> { File.join(current_path, 'config.ru') }
set :puma_state, "#{shared_path}/tmp/pids/puma.state"
set :puma_pid, "#{shared_path}/tmp/pids/puma.pid"
set :puma_bind, "unix://#{shared_path}/tmp/sockets/puma.sock" #accept array for multi-bind
set :puma_conf, "#{shared_path}/puma.rb"
set :puma_access_log, "#{shared_path}/log/puma_error.log"
set :puma_error_log, "#{shared_path}/log/puma_access.log"
set :puma_role, :app
set :puma_env, fetch(:rack_env, fetch(:rails_env, 'production'))
set :puma_threads, [0, 8]
set :puma_workers, 0
set :puma_worker_timeout, nil
set :puma_init_active_record, true
set :puma_preload_app, false
deploy.rbでrvm_ruby_versionを設定しましたか? – Mohanraj
はい私はそれを私の質問にも追加しましょう –