diff --git a/pages/self-hosting/hosting-guide.mdx b/pages/self-hosting/hosting-guide.mdx index 4ddf81f..dd22486 100644 --- a/pages/self-hosting/hosting-guide.mdx +++ b/pages/self-hosting/hosting-guide.mdx @@ -17,6 +17,7 @@ Interested in helping test on Windows? Join our [Discord](https://discord.com/in ## Prerequisites - [Docker](https://docs.docker.com/get-docker/) +- At least 4 GB of RAM allocated to the container runtime ## Step by step diff --git a/pages/setup-dev-environment.mdx b/pages/setup-dev-environment.mdx index da5afb1..29ce7ba 100644 --- a/pages/setup-dev-environment.mdx +++ b/pages/setup-dev-environment.mdx @@ -32,7 +32,7 @@ cd learnhouse Make sure your container runtime has at least 4GB of RAM allocated, as default - settings may vary by tool. + settings may vary by tool This will build & run the backend and the database docker images @@ -104,24 +104,27 @@ This will install all the dependencies needed for the frontend, and for this you pnpm i ``` -Add an .env file in the front folder with the following content +Add an .env file in the frontend folder with the following content -```env filename="apps/web/.env" {1-2} + + Setting MultiOrg to true won't work locally for now, please keep it false + + +```env filename="apps/web/.env" {1-2} copy NEXT_PUBLIC_LEARNHOUSE_MULTI_ORG=false -NEXT_PUBLIC_LEARNHOUSE_DEFAULT_ORG=test +NEXT_PUBLIC_LEARNHOUSE_DEFAULT_ORG=defaultorg NEXT_PUBLIC_LEARNHOUSE_API_URL=http://localhost:1338/api/v1/ NEXT_PUBLIC_LEARNHOUSE_BACKEND_URL=http://localhost:1338/ NEXT_PUBLIC_LEARNHOUSE_DOMAIN=localhost:3000 NEXT_PUBLIC_LEARNHOUSE_TOP_DOMAIN=localhost +NEXT_PUBLIC_LEARNHOUSE_COLLABORATION_WS_URL=wss://localhost:1998 +NEXTAUTH_SECRET="my-very-secret-key" +NEXTAUTH_URL=http://localhost:3000/ ``` - - Setting MultiOrg to true won't work locally for now, please set it to false - - - To learn about Organizations Hosting modes, please refer to the [Organization - Hosting Modes](/self-hosting/organization-hosting-modes) documentation + For details on organization hosting, see [Organization + Hosting Modes](/self-hosting/organization-hosting-modes) Run the dev environment @@ -130,24 +133,6 @@ Run the dev environment pnpm run dev ``` -### Configure your Organization as the default one - -Copy this content to the .env file in the web folder - -```env filename="apps/web/.env" {2} -NEXT_PUBLIC_LEARNHOUSE_MULTI_ORG=false -NEXT_PUBLIC_LEARNHOUSE_DEFAULT_ORG=default -NEXT_PUBLIC_LEARNHOUSE_API_URL=http://localhost:1338/api/v1/ -NEXT_PUBLIC_LEARNHOUSE_BACKEND_URL=http://localhost:1338/ -NEXT_PUBLIC_LEARNHOUSE_DOMAIN=localhost:3000 -NEXT_PUBLIC_LEARNHOUSE_TOP_DOMAIN=localhost -NEXT_PUBLIC_LEARNHOUSE_COLLABORATION_WS_URL=wss://localhost:1998 -``` - -Make sure to change the `NEXT_PUBLIC_LEARNHOUSE_DEFAULT_ORG` to the organization you want to set as the default one, you'll find the organization slug in the database in the `organizations` table - -Here it is set to `default` which is the default organization created by the backend when you ran the backend in the previous steps - ### Congratulations, you're done! 🎉 Visit the app at [http://localhost:3000/](http://localhost:3000/)