Fix frontend development server interpreter path
This commit is contained in:
@@ -40,7 +40,7 @@ cd main/frontend
|
||||
npm ci
|
||||
npm run build
|
||||
cd /home/jorenmartijn/django
|
||||
VITE_USE_DEV_SERVER=false tasksnest/bin/python main/manage.py collectstatic
|
||||
VITE_USE_DEV_SERVER=false tasksnest-host/bin/python main/manage.py collectstatic
|
||||
```
|
||||
|
||||
`npm run build` writes hashed assets and `.vite/manifest.json` to
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
"scripts": {
|
||||
"dev": "concurrently --kill-others-on-fail --names assets,django --prefix-colors cyan,green \"npm run dev:assets\" \"npm run dev:django\"",
|
||||
"dev:assets": "vite build --watch",
|
||||
"dev:django": "VITE_USE_DEV_SERVER=false ../../tasksnest/bin/python ../manage.py runserver 0.0.0.0:1234",
|
||||
"dev:django": "VITE_USE_DEV_SERVER=false ../../tasksnest-host/bin/python ../manage.py runserver 0.0.0.0:1234",
|
||||
"dev:hmr": "concurrently --kill-others-on-fail --names vite,django --prefix-colors cyan,green \"npm run dev:vite\" \"npm run dev:django:hmr\"",
|
||||
"dev:vite": "vite",
|
||||
"dev:django:hmr": "VITE_USE_DEV_SERVER=true ../../tasksnest/bin/python ../manage.py runserver 0.0.0.0:1234",
|
||||
"dev:django:hmr": "VITE_USE_DEV_SERVER=true ../../tasksnest-host/bin/python ../manage.py runserver 0.0.0.0:1234",
|
||||
"build": "vite build",
|
||||
"preview": "vite preview"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user