From c129f4c832c8cd4dc4dde2e40d2b7a25da33cdb9 Mon Sep 17 00:00:00 2001 From: Matt Aitken Date: Fri, 17 Oct 2025 10:56:21 +0100 Subject: [PATCH] Fix for .env issues when getting setup with the repo - The .env.example was missing required Clickhouse values. - A symlink was needed for .env from the root to the apps/webapp folder --- .env.example | 5 +++++ apps/webapp/.env | 1 + apps/webapp/.gitignore | 3 ++- 3 files changed, 8 insertions(+), 1 deletion(-) create mode 120000 apps/webapp/.env diff --git a/.env.example b/.env.example index 34bbb272e7..d514802084 100644 --- a/.env.example +++ b/.env.example @@ -13,6 +13,11 @@ APP_ORIGIN=http://localhost:3030 ELECTRIC_ORIGIN=http://localhost:3060 NODE_ENV=development +# Clickhouse +CLICKHOUSE_URL=http://default:password@localhost:8123 +RUN_REPLICATION_CLICKHOUSE_URL=http://default:password@localhost:8123 +RUN_REPLICATION_ENABLED=1 + # Set this to UTC because Node.js uses the system timezone TZ="UTC" diff --git a/apps/webapp/.env b/apps/webapp/.env new file mode 120000 index 0000000000..c7360fb82d --- /dev/null +++ b/apps/webapp/.env @@ -0,0 +1 @@ +../../.env \ No newline at end of file diff --git a/apps/webapp/.gitignore b/apps/webapp/.gitignore index 24213b447e..595ab180e1 100644 --- a/apps/webapp/.gitignore +++ b/apps/webapp/.gitignore @@ -9,7 +9,8 @@ node_modules /app/styles/tailwind.css - +# Ensure the .env symlink is not removed by accident +!.env # Storybook build outputs build-storybook.log