- Styleguide: ruby-style-guide
- Linter: rubocop
Prepare project:
$ git clone https://github.com/IIC2113-2015-2-Grupo1/TuConstituyes.git
$ cd TuConstituyes
$ bundle install
Start:
# Uses puma as webserver. Settings at 'config/puma.rb'
$ rails s
Make sure to set the same key or passwords will become invalid.
$ export SECRET_KEY_BASE="LONG_HASH"
To setup with docker in PRODUCTION
enviorement:
# Build
$ docker build --no-cache --rm --tag=tuconstituyes .
# Run
$ docker-compose up -d
# First time run
$ docker-compose run web rake db:setup
# Just migrate
$ docker-compose run web rake db:migrate
To stop:
$ docker-compose stop