Adds symlink to use DATABASE_URL from root

pull/3823/head^2
zomars 2022-08-11 19:52:27 -06:00
parent 50a20e2c3b
commit a839cf7f59
6 changed files with 5 additions and 6 deletions

View File

@ -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 **************************************************************************************************

1
.gitignore vendored
View File

@ -2,6 +2,7 @@
# .env file
.env
!packages/prisma/.env
# dependencies
node_modules

View File

@ -139,7 +139,7 @@ echo 'NEXT_PUBLIC_DEBUG=1' >> .env
#### Manual setup
1. Configure environment variables in the `packages/prisma/.env` file. Replace `<user>`, `<pass>`, `<db-host>`, `<db-port>` with their applicable values
1. Configure environment variables in the `.env` file. Replace `<user>`, `<pass>`, `<db-host>`, `<db-port>` with their applicable values
```
DATABASE_URL='postgresql://<user>:<pass>@<db-host>:<db-port>'

View File

@ -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 `<user>`, `<pass>`, `<db-host>`, `<db-port>` with their applicable values
1. Configure database in the `.env` file. Replace `<user>`, `<pass>`, `<db-host>`, `<db-port>` with their applicable values
```text
DATABASE_URL='postgresql://<user>:<pass>@<db-host>:<db-port>'

1
packages/prisma/.env Symbolic link
View File

@ -0,0 +1 @@
../../.env

View File

@ -1,2 +0,0 @@
# DATABASE_URL='postgresql://<user>:<pass>@<db-host>:<db-port>/<db-name>'
DATABASE_URL="postgresql://postgres:@localhost:5450/calendso"