We have plenty of paths used in the application, but two of them are hardcoded in examples all over the code for historical reasons. I found that by default in Docker, the path would resolve to the value we are setting it explicitly to, so it doesn't make sense to set a few variables we are setting now explicitly.
Remark42 site
Work on your local environment
Requirements:
- Node.js v14 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:
yarn
yarn dev
Build
yarn build
Work with Docker Compose
Build
Install dependencies and run development server inside Docker:
docker-compose build
docker-compose up server
Then serve files from ./build with your favorite server
Development
docker-compose up --build server
Then head to http://localhost:8080