From a839cf7f59ac4374f4518638cbf65d0da211d34e Mon Sep 17 00:00:00 2001 From: zomars Date: Thu, 11 Aug 2022 19:52:27 -0600 Subject: [PATCH] Adds symlink to use DATABASE_URL from root --- .env.example | 2 +- .gitignore | 1 + README.md | 2 +- apps/docs/pages/self-hosting/install.mdx | 3 +-- packages/prisma/.env | 1 + packages/prisma/.env.example | 2 -- 6 files changed, 5 insertions(+), 6 deletions(-) create mode 120000 packages/prisma/.env delete mode 100644 packages/prisma/.env.example diff --git a/.env.example b/.env.example index 49676b154..774e96a4b 100644 --- a/.env.example +++ b/.env.example @@ -21,7 +21,7 @@ CALCOM_LICENSE_KEY= # *********************************************************************************************************** # - DATABASE ************************************************************************************************ -# ⚠️ ⚠️ ⚠️ DATABASE_URL got moved to `packages/prisma/.env.example` ⚠️ ⚠️ ⚠️ +DATABASE_URL="postgresql://postgres:@localhost:5450/calendso" # *********************************************************************************************************** # - SHARED ************************************************************************************************** diff --git a/.gitignore b/.gitignore index b61bab887..be21d9cdd 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ # .env file .env +!packages/prisma/.env # dependencies node_modules diff --git a/README.md b/README.md index b7f63bfcc..322a9ef95 100644 --- a/README.md +++ b/README.md @@ -139,7 +139,7 @@ echo 'NEXT_PUBLIC_DEBUG=1' >> .env #### Manual setup -1. Configure environment variables in the `packages/prisma/.env` file. Replace ``, ``, ``, `` with their applicable values +1. Configure environment variables in the `.env` file. Replace ``, ``, ``, `` with their applicable values ``` DATABASE_URL='postgresql://:@:' diff --git a/apps/docs/pages/self-hosting/install.mdx b/apps/docs/pages/self-hosting/install.mdx index a37a5eebc..93e5cac0b 100644 --- a/apps/docs/pages/self-hosting/install.mdx +++ b/apps/docs/pages/self-hosting/install.mdx @@ -34,7 +34,6 @@ Here is what you need to be able to run Cal. ```sh cp apps/web/.env.example apps/web/.env - cp packages/prisma/.env.example packages/prisma/.env ``` 1. Install packages with yarn @@ -54,7 +53,7 @@ yarn dx ### Manual setup -1. Configure database in the `packages/prisma/.env` file. Replace ``, ``, ``, `` with their applicable values +1. Configure database in the `.env` file. Replace ``, ``, ``, `` with their applicable values ```text DATABASE_URL='postgresql://:@:' diff --git a/packages/prisma/.env b/packages/prisma/.env new file mode 120000 index 000000000..c7360fb82 --- /dev/null +++ b/packages/prisma/.env @@ -0,0 +1 @@ +../../.env \ No newline at end of file diff --git a/packages/prisma/.env.example b/packages/prisma/.env.example deleted file mode 100644 index 6e7be9511..000000000 --- a/packages/prisma/.env.example +++ /dev/null @@ -1,2 +0,0 @@ -# DATABASE_URL='postgresql://:@:/' -DATABASE_URL="postgresql://postgres:@localhost:5450/calendso"