Skip to content

Commit 68d0037

Browse files
authored
fix(dev): dotenv issues when getting setup with the repo (#2612)
- The .env.example was missing required Clickhouse values. - A symlink was needed for .env from the root to the apps/webapp folder
1 parent 885d2d3 commit 68d0037

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.env.example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ APP_ORIGIN=http://localhost:3030
1313
ELECTRIC_ORIGIN=http://localhost:3060
1414
NODE_ENV=development
1515

16+
# Clickhouse
17+
CLICKHOUSE_URL=http://default:password@localhost:8123
18+
RUN_REPLICATION_CLICKHOUSE_URL=http://default:password@localhost:8123
19+
RUN_REPLICATION_ENABLED=1
20+
1621
# Set this to UTC because Node.js uses the system timezone
1722
TZ="UTC"
1823

apps/webapp/.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../.env

apps/webapp/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ node_modules
99

1010
/app/styles/tailwind.css
1111

12-
12+
# Ensure the .env symlink is not removed by accident
13+
!.env
1314

1415
# Storybook build outputs
1516
build-storybook.log

0 commit comments

Comments
 (0)