I'm trying to do development in react-admin with vite. I've done something and deployed to the ubuntu server for testing purpose. In the root folder of react-admin project under ubuntu, I'm triggering the Vite server with "yarn dev". Everything is running smoothly without any issue, the only annoying part is the project url was unreachable after 2 hours. I will need to trigger the Vite server with "yarn dev" again. Anyone have any idea to keep the Vite server keep alive without disconnect?
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (2)
To keep the Vite server running continuously, you can use a process manager like PM2 :
With these steps, PM2 will keep the Vite server running in the background and restart it if it crashes or if the server restarts.
Btw, use the hashtag #help for posts that need help