When I tried to push my changes to a staging dyno on Heroku I got this message when it\'s building:
$ git push staging
.
.
.
remote: -----> Installing dep
Check the "shebang" line of your binstubs (all the files in bin/
) they should all look like #!/usr/bin/env ruby
for example:
$ head -n 1 bin/*
==> bin/bundle <==
#!/usr/bin/env ruby
==> bin/rails <==
#!/usr/bin/env ruby
==> bin/rake <==
#!/usr/bin/env ruby
==> bin/setup <==
#!/usr/bin/env ruby
==> bin/spring <==
#!/usr/bin/env ruby
==> bin/webpack <==
#!/usr/bin/env ruby
==> bin/webpack-dev-server <==
#!/usr/bin/env ruby
==> bin/yarn <==
#!/usr/bin/env ruby
If you see one that looks like this:
#!/usr/bin/env ruby2.5
That will cause a problem
Found the problem... the cache in heroku dyno needs to be purged. Heroku made a plugin that can do just that. Install it:
$ heroku plugins:install heroku-repo
And run:
$ heroku repo:purge_cache -a appname
Then commit something or run heroku repo:reset
and deploy again.
The cache in heroku dyno needs to be purged. Heroku made a plugin that can do just that. Install it:
$ heroku plugins:install heroku-repo
And run:
$ heroku repo:purge_cache -a $APPNAME
Then deploy again.