Skip to content

Commit

Permalink
website: re-introduce readme
Browse files Browse the repository at this point in the history
  • Loading branch information
phaleth authored and terrablue committed Aug 4, 2024
1 parent 2b7856f commit 865123d
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions packages/website/README.md
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
```

0 comments on commit 865123d

Please sign in to comment.