diff --git a/packages/website/README.md b/packages/website/README.md new file mode 100644 index 00000000..0f9a3857 --- /dev/null +++ b/packages/website/README.md @@ -0,0 +1,41 @@ +# Primate website + +This package contains the code for https://primatejs.com, which uses Primate +itself. + +## Run locally + +```sh +npm run local +``` + +## Edit content + +The website's static content is located at [root docs][docs]. + +[docs]: https://github.com/primatejs/primate/tree/master/docs + +## Build and Run deployment using Docker locally + +### Clean +```sh +docker stop primate +docker rmi primate:$(date '+%Y-%m-%d') +``` + +### Build +```sh +docker build -t primate:$(date '+%Y-%m-%d') -f packages/website/Dockerfile . +docker builder prune -f +``` + +### Run +```sh +docker run --rm -d -p 6161:6161 --name=primate primate:$(date '+%Y-%m-%d') +docker logs primate -f +``` + +### Verify +```sh +docker exec -it primate ls -lha /app/website +```