Created
January 12, 2014 10:46
-
-
Save itsluke/8383106 to your computer and use it in GitHub Desktop.
Make a quick rails project in haml, bash function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function newrailsproject() { | |
rails new $1 -d mysql | |
cd $1 | |
rm public/index.html | |
rm Gemfile | |
rm app/views/layout/application.html.erb | |
cp $HOME/code/rails/template/template_Gemfile Gemfile | |
bundle install | |
echo "\n ****** project created \n" | |
rails g nifty:layout --haml | |
bundle exec compass init | |
git init | |
rails g figaro:install | |
echo "\n ****** nifty compass git and figaro installed \n" | |
cd $1 | |
sublime . | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment