rails new appname -d mysql
cd appname
git init
touch .ruby-gemset && touch .ruby-version
echo 'appname' >> .ruby-gemset
echo '2.2' >> .ruby-version
Add differents gems then bundle
and rake db:create
Move config/database.yml
to config/database.yml.sample
Move config/secrets.yml
to config/secrets.yml.sample
Rename README.rdoc
to README.md
then add line about database.yml
such as:
# AppName
## Bootstrap app
`cd config && cp database.yml{.sample,} && cp secrets.yml{.sample,} && cd -`
## Regenerate database
`rake db:drop; rake db:create; rake db:migrate`
.gitignore
: ignore/test/*
,/config/database.yml
and/config/secrets.yml
app/assets/stylesheets/application.css
app/assets/javascripts/application.js
app/views/layouts/application.html.erb
: implementyield(:head)
andyield(:scripts)
app/config/routes.rb
Commit these changes on master
and have fun 😍