From 147044f29f4c9bf13ee8dc929d4998d3efcebf69 Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Fri, 8 Dec 2023 15:54:47 -1000 Subject: [PATCH] chore: Add docs for built version of Lysand --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6dd8cb1d..36bc4642 100644 --- a/README.md +++ b/README.md @@ -130,6 +130,14 @@ bun migrate Create a Meilisearch instance (using Docker is recommended). For a [`docker-compose`] file, copy the `meilisearch` service from the [`docker-compose.yml`](docker-compose.yml) file. Set up Meiliseach's API key by passing the `MEILI_MASTER_KEY` environment variable to the server. Then, enale and configure search in the config file. +7. Build everything: + +```bash +bun prod-build +``` + +You may now start the server with `bun start`. It lives in the `dist/` directory, all the other code can be removed from this point onwards. +In fact, the `bun start` script merely runs `bun run dist/index.js --prod`! ### Running To run the server, simply run the following command: @@ -189,7 +197,7 @@ You may need root privileges to run Docker commands. You can run CLI commands inside Docker using the following command: ```bash -sudo docker exec -it lysand bun cli ... +sudo docker exec -it lysand sh entrypoint.sh cli ... ``` ### Running migrations inside Docker @@ -197,7 +205,7 @@ sudo docker exec -it lysand bun cli ... You can run migrations inside Docker using the following command (if needed): ```bash -sudo docker exec -it lysand bun migrate +sudo docker exec -it lysand sh entrypoint.sh prisma migrate deploy ``` ## Contributing