Skip to content

IIC2113-2015-2-Grupo1/TuConstituyes

Repository files navigation

TuConstituyes

Build Status Code Climate Codacy Badge

Getting Started

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

Docker

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