Skip to content

Commit c1193e1

Browse files
committed
adding polling to app container, providing config.env vars, update readme, and removing polling from vite config
1 parent 7c966d8 commit c1193e1

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,15 @@ GOOGLE_CLIENT_SECRET=
3333

3434
[podman-compose](https://github.com/containers/podman-compose) is used to run a local copy of all required services together.
3535

36+
37+
38+
macOS Development Setup - If you're working on macOS and encounter issues with file watching in Vite, use the following environment variables (in config.env):
39+
40+
```
41+
export CHOKIDAR_USEPOLLING=true
42+
export CHOKIDAR_INTERVAL=1000
43+
```
44+
3645
```shell
3746
# This will run podman-compose in the background (-d flag is --detach)
3847
podman-compose up -d

config.env.example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ ORCID_API_ENDPOINT=https://api.sandbox.orcid.org
1818
GLOBUS_CLIENT_ID=
1919
GLOBUS_CLIENT_SECRET=
2020

21+
# macOS Development Setup - Fixes issues with Vite file watching - set to CHOKIDAR_USEPOLLING=true
22+
CHOKIDAR_USEPOLLING=false
23+
CHOKIDAR_INTERVAL=1000
24+
2125
# Relay for enabling mail - leave blank to disable email
2226
CRN_SERVER_MAIL_API_KEY=
2327
CRN_SERVER_MAIL_API_SECRET=

docker-compose.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ services:
3333
- "9992:9992"
3434
environment:
3535
- NODE_ENV=development
36-
volumes:
37-
- ./:/srv:rw,z
3836
depends_on:
3937
node:
4038
condition: service_healthy

packages/openneuro-app/vite.config.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ export default defineConfig({
2727
port: 80,
2828
host: "0.0.0.0",
2929
cors: true,
30-
watch: {
31-
usePolling: true, // Enable polling for file watching
32-
interval: 1000, // Set polling interval to 1000ms (1 second)
33-
},
3430
},
3531
build: {
3632
sourcemap: true,

0 commit comments

Comments
 (0)