Follow these steps to initialize the PostgreSQL databases:
- Install PostgreSQL if needed. On Ubuntu you can do this by running:
sudo apt-get install -y postgresql-9.5 postgresql-contrib postgresql-server-dev-9.5
- Create development and test databases by running:
sudo -u postgres psql --dbname=postgres -f ./create_dev_and_test_dbs.sql
- If you need to delete the database execute
sudo -u postgres psql --dbname=postgres -f ./delete_dbs.sql
and the previus command again
- Run bundle install --without staging production, to install all application dependencies
- Run bundle exec rake, to run all tests and ensure everything is properly setup
- Run RACK_ENV=development bundle exec rake db:migrate db:seed, to setup the development database
- Run bundle exec padrino start -h 0.0.0.0, to start the application
https://astapor-api.herokuapp.com/
- Local:
sudo docker run --rm --net=host -p9123:8080 -ebase_url=http://localhost:3000/ -eapi_token=
api token
registry.gitlab.com/fiuba-memo2/guarabot:latest - Prod:
sudo docker run --rm --net=host -p9123:8080 -ebase_url=https://astapor-api.herokuapp.com/ -eapi_token=
api token
registry.gitlab.com/fiuba-memo2/guarabot:latest