lavazares
is the backend for typephil.
git pull origin master
- Ensure you have all
go
dependencies usingdep ensure
. dep is the best way to get them. 2. Ensure you have allgo
dependencies 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-d
flag runs the container in the background, and-p
the open port on AWS to the port that the app listens on.