Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby-on-rails-4/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 4 错误:gem安装sqlite3-v';1.3.11';`绑定前成功_Ruby On Rails 4_Nginx_Deployment_Unicorn - Fatal编程技术网

Ruby on rails 4 错误:gem安装sqlite3-v';1.3.11';`绑定前成功

Ruby on rails 4 错误:gem安装sqlite3-v';1.3.11';`绑定前成功,ruby-on-rails-4,nginx,deployment,unicorn,Ruby On Rails 4,Nginx,Deployment,Unicorn,当我尝试部署rails应用程序时,下面的日志显示了错误 EBUG [4b7b573d] An error occurred while installing sqlite3 (1.3.11), and Bundler cannot continue. Make sure that `gem install sqlite3 -v '1.3.11'` succeeds before bundling. cap aborted! SSHKit::Runner::ExecuteError: Ex

当我尝试部署rails应用程序时,下面的日志显示了错误

EBUG [4b7b573d]     An error occurred while installing sqlite3 (1.3.11), and Bundler cannot
continue.
Make sure that `gem install sqlite3 -v '1.3.11'` succeeds before bundling.
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as [----]: bundle exit status: 5
bundle stdout: An error occurred while installing sqlite3 (1.3.11), and Bundler cannot
continue.
Make sure that `gem install sqlite3 -v '1.3.11'` succeeds before bundling.
bundle stderr: Nothing written

SSHKit::Command::Failed: bundle exit status: 5
bundle stdout: An error occurred while installing sqlite3 (1.3.11), and Bundler cannot
continue.
Make sure that `gem install sqlite3 -v '1.3.11'` succeeds before bundling.
bundle stderr: Nothing written

Tasks: TOP => deploy:updated => bundler:install
(See full trace by running task with --trace)
The deploy has failed with an error: #<SSHKit::Runner::ExecuteError: Exception while executing as [------]: bundle exit status: 5
bundle stdout: An error occurred while installing sqlite3 (1.3.11), and Bundler cannot
continue.
Make sure that `gem install sqlite3 -v '1.3.11'` succeeds before bundling.
bundle stderr: Nothing written

我如何解决这个问题以及为什么会发生这种情况?

您是否尝试将以下设置行添加到config/deploy.rb中:

set :bundle_without, [:development, :test]
set :bundle_without, [:development, :test]