Closed mike-burns closed 5 months ago
Build succeeded, site failed to load, solved by running
heroku run rake db:migrate
https://github.com/thoughtbot/suspenders/pull/937 https://github.com/thoughtbot/suspenders/pull/906
Build failed, Undefined method 'timeout' error, solved by deleting obsolete Rack::Timeout.timeout call in config/environments/production.rb
Fixed in 59357600b0dec1729a012f24a3fdd426cc3198b5.
Another item I had to do was to ensure my gemlock was bundled with bundler < 2.0 and also remove the bundler 2 buildpack from heroku
Closing simply because the latest release no longer assumes we default to hosting on Heroku.
Thanks to @keiranking for taking great notes while he tried to deploy his first Rails app to Heroku:
Trying to deploy Suspenders app to Heroku
Ran:
heroku login
heroku create
git push heroku master
Build failed, solved by creating environment variables on Heroku
Build failed,
Undefined method 'timeout' error
, solved by deleting obsolete Rack::Timeout.timeout call inconfig/environments/production.rb
https://github.com/thoughtbot/desks/commit/db3ebed816d41fe901ff8b08312a19e12111bc09Build failed, solved by:
gem "webpacker", require: false
to Gemfilebundle exec rails webpacker:install
(not sure if was necessary) https://github.com/rails/webpackerBuild failed, conflict between
package-lock.json
andyarn.lock
, solved by removingpackage-lock.json
Build failed, solved by adding the following buildpacks on Heroku Dashboard > Settings > Buildpacks:
Build succeeded, but
bundler: failed to load command: puma
, solved by adding Heroku Postgres on Heroku Dashboard > Resources > Add-onsBuild succeeded, site failed to load, solved by running
heroku run rake db:migrate