1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-08-05 13:15:18 +02:00

Make sure servers keep running when startup terminal gets closed + add "hot reload" for frontend

This commit is contained in:
lesensei 2025-05-08 21:06:27 +00:00
parent 45c6245ec5
commit 1088673f1c
2 changed files with 8 additions and 3 deletions

View file

@ -63,9 +63,9 @@ if [ $? -eq 137 ]; then
fi fi
# Run backend in dev mode # Run backend in dev mode
python manage.py runserver 2>&1 | tee -a /tmp/servers.log >> /tmp/backend.log 2&>1 & nohup $SHELL -c "python manage.py runserver 2>&1 | tee -a /tmp/servers.log >> /tmp/backend.log" > /dev/null &
cd ../../frontend cd ../../frontend
# Run frontend in dev mode # Run frontend in dev mode
npm run dev 2>&1 | tee -a /tmp/servers.log >> /tmp/frontend.log 2&>1 & nohup $SHELL -c "npm run dev 2>&1 | tee -a /tmp/servers.log >> /tmp/frontend.log" > /dev/null &

View file

@ -9,5 +9,10 @@ export default defineConfig({
Icons({ Icons({
compiler: 'svelte' compiler: 'svelte'
}) })
] ],
server: {
watch: {
usePolling: true
}
}
}); });