This simple application includes ruby/rails technology which we use in the FlatStack for new projects. Application currently based on Rails 3.2 stable branch and Ruby 1.9
01_config.rb - shortcut for getting application config with app_configmailer.rb - setup default hosts for mailer from configurationtime_formats.rb - setup default time formats, so you can use them like object.create_at.to_s(:us_time)requires.rb - automatically requires everything in lib/ & lib/extensionsscript/bootstrap - setup required gems and migrate db if neededscript/quality - runs brakeman and rails_best_practices for the appscript/ci - should be used in the CI, checkout .travis.yml for examplescript/ci_deploy - should be used in Semaphoreapp CI to deploy code to HerokuClone application as new project with original repository named "rails3-base"
git clone git://github.com/fs/rails3-base.git --origin rails3-base [MY-NEW-PROJECT]
Create your new repo on GitHub and push master into it. Make sure master branch is tracking origin repo.
git remote add origin git@github.com:[MY-GITHUB-ACCOUNT]/[MY-NEW-PROJECT].git
git push -u origin master
Run bootstrap script
script/bootstrap
Make sure all test are green
bundle exec rspec spec
Run app
foreman start
You can fetch latest changes from rails3-base repo and merge or cherry-pick commits
git fetch rails3-base
git flow feature start rails3-base-update
git merge rails3-base/master
# fix conflicts
# commit
# test
git flow feature finish rails3-base-update