上限生产部署 - Rails 6 - 失败
Cap production deploy - Rails 6 - Failing
正在尝试将 rails 6 应用程序部署到 Digital Ocean droplet。
I 运行 cap production deploy
失败并出现以下错误:
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Command::Failed: rake exit status: 256
rake stdout: Nothing written
rake stderr: rake aborted!
NoMethodError: undefined method `each' for #<String:0x0000565323a30eb8>
/var/www/html/Dev/rails/AppName/config/application.rb:10:in `<module:AppName>'
/var/www/html/Dev/rails/AppName/config/application.rb:9:in `<top (required)>'
/var/www/html/Dev/rails/AppName/Rakefile:4:in `require_relative'
/var/www/html/Dev/rails/AppName/Rakefile:4:in `<top (required)>'
/home/rdevc/.rbenv/versions/2.5.1/bin/bundle:23:in `load'
/home/rdevc/.rbenv/versions/2.5.1/bin/bundle:23:in `<main>'
(See full trace by running task with --trace)
Tasks: TOP => deploy:assets:prepare
(See full trace by running task with --trace)
The deploy has failed with an error: rake exit status: 256
rake stdout: Nothing written
rake stderr: rake aborted!
NoMethodError: undefined method `each' for #<String:0x0000565323a30eb8>
/var/www/html/Dev/rails/AppName/config/application.rb:10:in `<module:AppName>'
/var/www/html/Dev/rails/AppName/config/application.rb:9:in `<top (required)>'
/var/www/html/Dev/rails/AppName/Rakefile:4:in `require_relative'
/var/www/html/Dev/rails/AppName/Rakefile:4:in `<top (required)>'
/home/rdevc/.rbenv/versions/2.5.1/bin/bundle:23:in `load'
/home/rdevc/.rbenv/versions/2.5.1/bin/bundle:23:in `<main>'
(See full trace by running task with --trace)
知道是什么原因造成的吗?
gem 依赖项都已满足,服务器正在 运行 使用与我的开发箱中相同版本的 ruby、rails 和 ubuntu。
我在部署这个应用程序时遇到了无穷无尽的问题。凭据问题、sass 噩梦等等。最后,我新建了一个5.2.2的项目,把controllers、models、migrations、views、routes等复制进去,把[6.0]的几个instance改成了[5.2]。首先尝试完美部署,应用程序现已上线。我只能假设我的 rails 6 安装有问题。
谢谢你们的回复,伙计们。
正在尝试将 rails 6 应用程序部署到 Digital Ocean droplet。
I 运行 cap production deploy
失败并出现以下错误:
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Command::Failed: rake exit status: 256
rake stdout: Nothing written
rake stderr: rake aborted!
NoMethodError: undefined method `each' for #<String:0x0000565323a30eb8>
/var/www/html/Dev/rails/AppName/config/application.rb:10:in `<module:AppName>'
/var/www/html/Dev/rails/AppName/config/application.rb:9:in `<top (required)>'
/var/www/html/Dev/rails/AppName/Rakefile:4:in `require_relative'
/var/www/html/Dev/rails/AppName/Rakefile:4:in `<top (required)>'
/home/rdevc/.rbenv/versions/2.5.1/bin/bundle:23:in `load'
/home/rdevc/.rbenv/versions/2.5.1/bin/bundle:23:in `<main>'
(See full trace by running task with --trace)
Tasks: TOP => deploy:assets:prepare
(See full trace by running task with --trace)
The deploy has failed with an error: rake exit status: 256
rake stdout: Nothing written
rake stderr: rake aborted!
NoMethodError: undefined method `each' for #<String:0x0000565323a30eb8>
/var/www/html/Dev/rails/AppName/config/application.rb:10:in `<module:AppName>'
/var/www/html/Dev/rails/AppName/config/application.rb:9:in `<top (required)>'
/var/www/html/Dev/rails/AppName/Rakefile:4:in `require_relative'
/var/www/html/Dev/rails/AppName/Rakefile:4:in `<top (required)>'
/home/rdevc/.rbenv/versions/2.5.1/bin/bundle:23:in `load'
/home/rdevc/.rbenv/versions/2.5.1/bin/bundle:23:in `<main>'
(See full trace by running task with --trace)
知道是什么原因造成的吗? gem 依赖项都已满足,服务器正在 运行 使用与我的开发箱中相同版本的 ruby、rails 和 ubuntu。
我在部署这个应用程序时遇到了无穷无尽的问题。凭据问题、sass 噩梦等等。最后,我新建了一个5.2.2的项目,把controllers、models、migrations、views、routes等复制进去,把[6.0]的几个instance改成了[5.2]。首先尝试完美部署,应用程序现已上线。我只能假设我的 rails 6 安装有问题。 谢谢你们的回复,伙计们。