Skip to content

Commit fbbc6df

Browse files
committed
add .env to git since only non-sensitive variables are left
1 parent 70f9302 commit fbbc6df

7 files changed

Lines changed: 10 additions & 62 deletions

File tree

‎.env‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# These are non-sensitive variables, hence they are in git.
2+
PUBLIC_ADMIN_URL=http://localhost:5174
3+
PUBLIC_PLAYWRIGHT=

‎.env.example‎

Lines changed: 0 additions & 5 deletions
This file was deleted.

‎.gitignore‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ node_modules
1212
.DS_Store
1313
Thumbs.db
1414

15-
# Env
16-
.env
17-
.env.*
18-
!.env.example
19-
!.env.test
2015

2116
# Vite
2217
vite.config.js.timestamp-*

‎CONTRIBUTING.md‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,9 @@ You need to have [Git](https://git-scm.com/), [NodeJS](https://nodejs.org/) and
4747
2. Clone your fork with `git clone https://github.com/{your_username}/CatDat.git`.
4848
3. Change into the directory with `cd CatDat`.
4949
4. Install dependencies with `pnpm install`.
50-
5. Create a local `.env` file from `.env.example`.
51-
6. Create the local database with `pnpm db:setup`.
52-
7. Update the local database with `pnpm db:update`.
53-
8. Start the local development server with `pnpm dev`.
50+
5. Create the local database with `pnpm db:setup`.
51+
6. Update the local database with `pnpm db:update`.
52+
7. Start the local development server with `pnpm dev`.
5453

5554
### Updating the Database
5655

‎README.md‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,9 @@ You need to have [Git](https://git-scm.com/), [NodeJS](https://nodejs.org/) and
4343
2. Clone your fork with `git clone https://github.com/{your_username}/CatDat.git`.
4444
3. Change into the directory with `cd CatDat`.
4545
4. Install dependencies with `pnpm install`.
46-
5. Create a local `.env` file from `.env.example`.
47-
6. Create the local database with `pnpm db:setup`.
48-
7. Update the local database with `pnpm db:update`.
49-
8. Start the local development server with `pnpm dev`.
46+
5. Create the local database with `pnpm db:setup`.
47+
6. Update the local database with `pnpm db:update`.
48+
7. Start the local development server with `pnpm dev`.
5049

5150
## Tech Stack
5251

‎package.json‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"version": "0.0.1",
55
"type": "module",
66
"scripts": {
7-
"dev": "pnpm env:check && vite dev",
7+
"dev": "vite dev",
88
"dev:remote": "vite dev --mode prod",
99
"dev:host": "vite dev --host",
1010
"build": "vite build",
@@ -14,7 +14,6 @@
1414
"format": "prettier --write .",
1515
"lint": "prettier --check .",
1616
"prepare": "husky",
17-
"env:check": "tsx scripts/env.check",
1817
"db:shell": "sqlite3 databases/catdat/catdat.db",
1918
"db:kill": "rm -rf databases/catdat/catdat.db",
2019
"db:setup": "pnpm db:kill && tsx --tsconfig databases/tsconfig.json databases/catdat/scripts/setup.ts",

‎scripts/env.check.ts‎

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)