UptimeFunk is a web-app that provides uptime for the various lines of the Paris public transportation system.
- Install [
docker
|https://docs.docker.com/installation/#installation] and [docker-compose
|https://docs.docker.com/compose/install/]. - If you're on OSX, install [
boot2docker
|http://boot2docker.io/] as well - If you like doing things manuall, just disregard all the Docker-foo!
Simply executing the following commands should be enough to get you started:
docker-compose build
docker-compose up
docker-compose run web rake db:create
To execute any rake/rails command, or to get a shell:
docker-compose run web COMMAND TO ISSUE (/bin/bash for example)
When modifiyng the Gemfile or the Docker file, run the following command once again:
docker-compose build
This project can 597B easily be deployed using Capistrano. You will need the following installed on the target environment:
- Postgresql (with support for the
jsonb
data type) - Redis
- Monit
For a single-node deployment, add the following:
# config/deploy/production.rb
server 'example.com', user: 'user', roles: %w{app db web}
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Don't forget to run the tests with rake
.