Compose is part of docker command for years and during local development on Mac I have to change makefile locally for commands to work.
45 lines
684 B
Markdown
45 lines
684 B
Markdown
# Remark42 site
|
|
|
|
## Work on your local environment
|
|
|
|
Requirements:
|
|
|
|
- [Node.js v20](https://nodejs.org/en/) or higher - install from package or with Homebrew
|
|
- Yarn 1.22 or higher - once you have Node.js, run `npm i -g yarn`
|
|
|
|
### Development
|
|
|
|
Install dependencies and start the development server:
|
|
|
|
```shell
|
|
yarn
|
|
yarn dev
|
|
```
|
|
|
|
### Build
|
|
|
|
```shell
|
|
yarn build
|
|
```
|
|
|
|
## Work with Docker Compose
|
|
|
|
### Build
|
|
|
|
Install dependencies and run development server inside Docker:
|
|
|
|
```shell
|
|
docker compose build
|
|
docker compose up server
|
|
```
|
|
|
|
Then serve files from `./build` with your favorite server
|
|
|
|
### Development
|
|
|
|
```shell
|
|
docker compose up --build server
|
|
```
|
|
|
|
Then head to http://localhost:8080
|