This app has been dockerized blah
To build image:
docker build -t steamspan .
To run in development:
docker run -i --name steamspan -d -p 80:80 -e RAILS_ENV=development steamspan
docker run -i --name steamspan -d -p 80:80 -v /Users/nmajor/dev/steamspan:/var/app/steamspan -e PASSENGER_APP_ENV=development steamspan
Open bash session inside container
docker exec -t -i steamspan bash -l
Adding ENV variables to the docker image: https://github.com/phusion/passenger-docker#setting-environment-variables-in-nginx
Build and reload container docker kill steamspan docker rm steamspan docker build -t steamspan . docker run -i --name steamspan -d -p 3000:80 -e PASSENGER_APP_ENV=development steamspan
docker tag [IMAGE_ID] nmajor/steamspan:latest
docker login
docker push nmajor/steamspan
STEAM_API_KEY DATABASE_NAME DATABASE_HOST DATABASE_USERNAME DATABASE_PASSWORD SECRET_KEY_BASE
https://developers.google.com/analytics/devguides/collection/analyticsjs/events#overview onclick="ga('send', 'event', 'Amazon Affiliate Link', 'Action label', 'Action Value');"