A simple servant http server
stack set up
stack build
For continues development and quick feedback:
stack build --file-watch
To publish your image to docker hub:
make
Prerequisite:
- direvn
- docker hub account
Project may run with stack run
or as a docker image, and will require postgres. To bring postgres up:
./db/docker-compose up -d
docker ps ## to get the process id
docker inspect {process-id}
To execute to image locally:
docker run -p3000:3000 servant-web:latest
To test the deployment:
docker inspect `docker images | awdk '{printf $3}'` | grep IP
curl -v <IP>:3000/item