Skip to content

Commit

Permalink
Adds symlink to use DATABASE_URL from root
Browse files Browse the repository at this point in the history
  • Loading branch information
zomars committed Aug 12, 2022
1 parent 50a20e2 commit a839cf7
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -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 **************************************************************************************************
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# .env file
.env
!packages/prisma/.env

# dependencies
node_modules
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>'
Expand Down
3 changes: 1 addition & 2 deletions apps/docs/pages/self-hosting/install.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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>'
Expand Down
1 change: 1 addition & 0 deletions packages/prisma/.env
2 changes: 0 additions & 2 deletions packages/prisma/.env.example

This file was deleted.

0 comments on commit a839cf7

Please sign in to comment.