This is my math app. There are many like it but this one is mine.
Make a local copy of this Git repo:
mkdir -p ~/Projects/MathApp
cd ~/Projects/MathApp
git clone [email protected]:K-and-R/mathapp.git
cd mathapp
git checkout develop
We are presently using Ruby 2.2.2
. This is also defined in the .ruby-version
file as well as in the Gemfile (as ruby '2.2.2'
).
For development, Rubys are managed with Rbenv.
Depending on how this app is being used, we could require:
- Redis
- MySQL
- PostgreSQL
- Rmagick
git checkout develop
cp config/settings.local.{example.,}yml
To set up a development environment, follow the Development Environment Setup instructions.
To set up a production environment, follow the Production Environment Setup instructions.
We have automatic deployments form GitHub branches set up through Heroku or Codeship. Presently this is on the master
and develop
branches So, we just do:
git push
...then get back to work.
We are running multiple environments on Heroku, those are also configured for automatic deployments. For manual deployment, you might do something like:
git push staging release-1.2:master
or
git push production master:master
bundle exec rspec
...grab some coffee.
From your local git repo, in the branch you want to deploy, do:
cap staging deploy
or
cap production deploy