- docker
- docker-compose
- rbenv
rbenv install
gem install bundler
bundle install
docker-compose up -d
bundle exec rake db:migrate
bundle exec rake import_locodes
bundle exec rake test
bundle exec rake
docker build . -t terminal-lookup-api:latest
export DESIRED_PORT=8080
export ENVIRONMENT=production
docker run -p "$DESIRED_PORT":8080 terminal-lookup-api:latest bundle exec rackup -o 0.0.0.0 -E "$ENVIRONMENT" -p 8080
- Diego Camargo