Reputation: 53
New Rails user here. Apologies if this question has been asked before, but I couldn't find it after a day of searching.
I was following the Ruby on Rails getting started guide, so I created a test app called blog. According to the tutorial, the blog directory should have a bin folder in it, but it does not. It contains all of the other folders listed on the tutorial page, plus one called "scripts". Is scripts essentially the same folder as bin, or am I missing something? I am running rails v. 3.2.13 from a windows command prompt.
Thanks for any help you can give!
Upvotes: 4
Views: 7227
Reputation: 32040
In case of Rails 5.2 you will have to run rake app:update:bin command to create bin folder.
i.e.
rake app:update:bin
It will show you output like below:
create bin
create bin/bundle
create bin/rails
create bin/rake
create bin/setup
create bin/update
create bin/yarn
Upvotes: 9
Reputation: 6712
You need to run rake rails:update:bin
to create and populate the bin folder for Rails 4+
Upvotes: 5
Reputation: 145
Bin directory was introduced in Rails 4.0
http://edgeguides.rubyonrails.org/4_0_release_notes.html
6.1 Notable changes Your app's executables now live in the bin/ directory. Run rake rails:update:bin to get bin/bundle, bin/rails, and bin/rake.
Upvotes: 6
Reputation: 827
where is bin directory in rails3?
You need to create the bin folder under the app/ folder and add it in there.
mkdir app/bin
Upvotes: 0