-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
``` |