lavazares is the backend for typephil.
git pull origin master- Ensure you have all
godependencies usingdep ensure. dep is the best way to get them. 2. Ensure you have allgodependencies usingdep ensure. dep is the best way to get them. - Make sure you have the secrets.json file in the projects root direcotry.
- In order to run locally on the prod db (rip), run
go run main.go -local=false
- Rebuild the app.
go build . - Kill the previous docker container. You can find the running containers using
sudo docker ps. Copy the container ID of the container and runsudo docker stop <container-id>. - Build new container. Run
sudo docker build .This will output the ID of the newly built container, copy that since you'll need it in order to run it. - Run container.
sudo docker run -d -p 8081:5000 <id-you-previously-copied>The-dflag runs the container in the background, and-pthe open port on AWS to the port that the app listens on.