This script is my way of creating rails apps without much trouble. It works better for me than Rails' templates, so this is what I use.
Basically, it clones a template app and then changes the name of the app.
It's a very simple solution that I've been using for a while now.
curl https://raw.github.com/gist/3063978/17a42cb07222147dad7caa830bf22a2e902b2347/new_rails_app.sh > new_rails_app
chmod +x new_rails_app
After that, make sure the new_rails_app
script is somewhere in your $PATH
.
new_rails_app TheAppsName
There's none :)
If you want to change anything, you're more than welcome to create your own blank slate app that reflects your preferences and changing the script's line where $source
is defined to point to your own repository.
Thanks for this gist, very nice solution!
In my fork I've added some code to make sure a new secret is generated on every app creation, see the method
change_rails_app_secret
.