coffeejunk.
coffeejunk.
RRailway
Created by coffeejunk. on 7/9/2023 in #✋|help
Rails app deployment fails, ruby version in Gemfile read from .ruby-version
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 # -------------------------------------------
#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 # -------------------------------------------
9 replies