【发布时间】:2015-04-24 02:14:29
【问题描述】:
对 Heroku 进行一些更改后,我收到以下错误(即使我还原了更改)。
» heroku web.1 - - Starting process with command `bin/rails server -p 59617 -e production`
» app web.1 - - /usr/bin/env: ruby : No such file or directory
» heroku web.1 - - Process exited with status 127
» heroku web.1 - - State changed from starting to crashed
似乎我的应用程序不再理解 ruby。这些是我在 /bin 中的文件:
捆绑
#!/usr/bin/env ruby
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
load Gem.bin_path('bundler', 'bundle')
导轨
#!/usr/bin/env ruby
APP_PATH = File.expand_path('../../config/application', __FILE__)
require_relative '../config/boot'
require 'rails/commands'
耙子
#!/usr/bin/env ruby
require_relative '../config/boot'
require 'rake'
Rake.application.run
heroku 运行“gem env”
【问题讨论】:
标签: ruby-on-rails ruby heroku rake