-
Notifications
You must be signed in to change notification settings - Fork 15
Development Guidelines
Shaun McDonald edited this page May 27, 2013
·
6 revisions
- System: Git
- Hosted: GitHub at https://github.com/cyclestreets/
- Development: Ubuntu/Mac OS X
- Deployment: Ubuntu
Follow: https://github.com/bbatsov/ruby-style-guide
- Rails: 3.2 or newer
- Ruby: 1.9.2 (1.8 is not supported)
- Git: 1.7
- PostgreSQL: 9.0 or higher
- The master branch should be stable, tested, and can be deployed at any time.
- Work should be done in feature branches with meaningful names.
- Feature branches are merged into staging branch. Staging is deployed max once per day (barring emergencies).
- Very small changes and bug fixes can be made on the staging branch.
- Merges between branches should almost always be non-fast-forward.
- Only pulls from remotes or where a branch needs to catch up with master should be fast-forwards.
- All tests pass on staging
git checkout master
git merge --no-ff staging
git push origin master
- Wait for automatic deployment to server (every hour)