standardnotes / server

Server ecosystem for Standard Notes; fully self-hostable.
https://standardnotes.com/help/self-hosting/docker
GNU General Public License v3.0
249 stars 60 forks source link

How to run and build this app on local development environment #457

Open drtobbyas opened 1 year ago

drtobbyas commented 1 year ago

Please can you provide me a guide to run and build the application on my local environment?

jackyzy823 commented 1 year ago

Build: See dockerfile

Keypoint is yarn install --immutable and yarn build

Run: supervisord or node /docker/entrypoint-server.js

meramsey commented 1 year ago

This worked for me from repo root ;)

yarn install --immutable
yarn build
docker_tag='server'
docker buildx build --load --file="Dockerfile" . --tag standardnotes/${docker_tag}:latest
docker save standardnotes/${docker_tag}:latest > standardnotes_${docker_tag}.image.docker.tar

based on the output i think you could just do the last 3 and it would build inside the container though.

docker_tag='server'
docker buildx build --load --file="Dockerfile" . --tag standardnotes/${docker_tag}:latest
docker save standardnotes/${docker_tag}:latest > standardnotes_${docker_tag}.image.docker.tar