#Rails app deployment fails, ruby version in Gemfile read from .ruby-version

8 messages · Page 1 of 1 (latest)

gloomy blaze
#

My app uses the reasonably common practice of reading the ruby version that is specified in the Gemfile from the .ruby-version file. However, when I try to deploy my app I get an error stating that the .ruby-version file does not exist.

#13 0.745 [!] There was an error parsing `Gemfile`: No such file or directory @ rb_sysopen - .ruby-version. Bundler cannot continue.
#13 0.745
#13 0.745  #  from /app/Gemfile:4
#13 0.745  #  -------------------------------------------
#13 0.745  #
#13 0.745  >  ruby File.read(".ruby-version").strip
#13 0.745  #
#13 0.745  #  -------------------------------------------
lusty sandalBOT
#

Project ID: 0fff58e7-4bf8-4141-9324-7ed371ee7803

misty sageBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

gloomy blaze
#

0fff58e7-4bf8-4141-9324-7ed371ee7803

gloomy blaze
#

Does anyone know a way to fix this? I can't find anything in the documentation for this.

glad mortar
#

create a .ruby-version file?

gloomy blaze
#

The file exists

#

For comparison, the app deploys without issue on Heroku.