> ## Content Index
> Fetch the complete content index at: https://til.codes/llms.txt
> Use this file to discover other available public pages before exploring further.

# “bin/rails: No such file or directory” w/ Ruby 2 & Rails 4 on Heroku
- URL: https://til.codes/binrails-no-such-file-or-directory-w-ruby-2-rails-4-on-heroku/
- Published: 2015-07-20T06:30:34.000Z
- Updated: 2015-07-20T06:30:34.000Z
- Author: Manu Ajith
- Tags: git, ruby, rails, heroku, #Import 2024-07-13 21:01

Rails apps with version 4 or above has some files under the `bin` folder namely `bundle`, `rails`, `rake`, `setup`, `spring`. But since I had `bin` folder gitignored, these files dint make it to heroku.

To fix this:

Remove bin from \~/.gitignore  
Run `bundle install` or `rake rails:update:bin`  
Commit your changes with `git add .` and `git commit -m "Add bin back"`  
Push your changes to Heroku with git push heroku master

Heroku has a detailed article on the same which can be found [here](https://devcenter.heroku.com/articles/rails4?ref=til.codes).