Heroku hosting fails
bcs 11 posts |
I followed the instructions on the instiki site to create and host a wiki on heroku. But there seems to be an error which is probably to do with the gemfile? Here is the build log —–> Building on the Heroku-20 stack —–> Determining which buildpack to use for this app —–> Ruby app detected —–> Installing bundler 1.17.3 —–> Removing BUNDLED WITH version in the Gemfile.lock —–> Compiling Ruby/Rack —–> Using Ruby version: ruby-2.7.1 —–> Installing dependencies using bundler 1.17.3
! ! Failed to install gems via Bundler. ! ! Push rejected, failed to compile Ruby app. ! Push failed Could someone help with this issue? |
distler Moderator 123 posts |
Hmm. Yes, it looks like the |
bcs 11 posts |
I tried it again and got this error: —–> Building on the Heroku-20 stack —–> Determining which buildpack to use for this app —–> Ruby app detected —–> Installing bundler 1.17.3 —–> Removing BUNDLED WITH version in the Gemfile.lock —–> Compiling Ruby/Rack —–> Using Ruby version: ruby-2.7.1 —–> Installing dependencies using bundler 1.17.3
! ! Failed to install gems via Bundler. ! ! Push rejected, failed to compile Ruby app. ! Push failed I am not sure now if this was a problem from my side. |
distler Moderator 123 posts |
Clearly you are trying to use the wrong Try following these instructions. |
bcs 11 posts |
I followed the exact instructions on the site. The Gemfile.lock that I can see on my machine also doesn’t have the “BUNDLED WITH” line. The code seems to be running BUNDLED_WITHOUT : remote: Running: BUNDLE_WITHOUT=‘development:test’ BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 BUNDLE_GLOBAL_PATH_APPENDS_RUBY_SCOPE=1 bundle install -j4 But I do not know what BUNDLED_WITH version it is removing in a previous line. None of the files (Gemfile or Gemfile.lock) seem to have either BUNDLED_WITH or the BUNDLED_WITHOUT line. I found a dicussion on stackoverflow but the accepted answer says the same thing the log file says. I did not run bundle install at any point. |
distler Moderator 123 posts |
Hmm. Looking more closely at your error message, I think this commit might fix your problem. Dunno what the source of the extra space is, but that seems to be the cause of Heroku’s complaints. |
bcs 11 posts |
It works now! Thanks! |