Skip to content

Latest commit

 

History

History
47 lines (39 loc) · 1.59 KB

DEPLOYMENT.md

File metadata and controls

47 lines (39 loc) · 1.59 KB

Dr-movil

Maintainability

This proyect's objective is to help people better keep track of the different diseases they may have. We mainly take into account any kind of hearth disease and diabetes.

Pre-requisites

  1. You need to install Docker Desktop, to do that go to: https://www.docker.com/products/docker-desktop, create an account and download the software, once it's downloaded install Docker Desktop with the default configuration. Note: to download Docker Desktop you need to create an account with Docker.

  2. Clone this repository into your local machine

$ git clone git@github.com:ProyectoIntegrador2018/dr_movil.git
  1. AWS access and secret key.

Deployment

  1. Fire up a terminal, navigate to the cloned git repo and run:
$ docker-machine create --driver amazonec2 --amazonec2-access-key AKI******* --amazonec2-secret-key 8T93C*******  aws-sandbox
  1. (Optional) To make sure you created the instance correctly and it's active, run:
$ docker-machine ls -t "30"

Should look something like this:

NAME             ACTIVE   DRIVER         STATE     URL                         SWARM   DOCKER        ERRORS
aws-sandbox      *        amazonec2      Running   tcp://52.90.113.128:2376            v1.10.0
  1. Once the ec2 instance has been created on AWS run:
$ docker-compose -f docker-compose.prod.yml up -d --build

Then:

% rails db:create

Followed by:

% rails db:migrate