Optimized for fullhd display.
On the first time:
- Login to AWS CLI with
aws configure
Then:
- Login to Docker registry with
$(aws ecr get-login --no-include-email --region eu-west-1). The login stays valid for 12 hours. - Package with
docker build . -t 766261213300.dkr.ecr.eu-west-1.amazonaws.com/wunderpong:latest - Push container with
docker push 766261213300.dkr.ecr.eu-west-1.amazonaws.com/wunderpong:latest - Delete old pod with
kubectl delete pods -l app=wunderpong-app. A new pod with the new image will be automatically created. The command takes a while to finish since it waits for the pod to be completely deleted.
If you need to change the deployment configuration, apply changes with kubectl apply -f deploy/wunderpong.yaml.
/pingpongmatch <winner> <loser> - adds new match record
/pingpongundo <playername> - Undos player's latest match
/pingpongladder - displays current player ladder
- Setup postgres database
- Add
DATABASE_URLto.envfile - [optional] Set
DEVELOPMENT_API_URLin.envif other than localhost:3000 npm ioryarnnpm run devoryarn dev- Go to localhost:1234
- nothing here
DATABASE_URL=<postgres url>
PRODUCTION_API_URL=https://wunderpong.lab.wunder.dog/api
DEVELOPMENT_API_URL=< optional url for api, defaults to localhost:3000>
SLACK_WEBHOOK_URL=<slack webhook url>