In another question (Why does the Rails command force a help message for the new
command?), I found that Rails needs the rails
script to be in the script
folder, in the root of my project, in order for it to be properly detected as an existing Rails projects, and allow me to use the various rails
commands other then new
.
I did this because I felt that the more popular moniker for including executable content in a repository to highlight available use cases is by using the name scripts
. At least the pluralism in English should be appreciated!
Is there anyway to change which folder the main Rails executable looks for the project-included one?
I actually think it's a bit silly to include this rails
executable in the project, and can be redundant. Maybe it's for customization, but I feel that could better be done in the configuration, environment, other .rb
files. So also, could this just be removed somehow, and still have a functioning project through varied use of the main rails
command.
Aucun commentaire:
Enregistrer un commentaire