Division Posted June 19, 2019 Posted June 19, 2019 Is there a way letting the running server reloading my javascript files? npm run watch always rebuilds index.js on changes but the server doesn't auto-re-load this file. Is there a way to enable an event with maybe params? 1
araynimax Posted June 30, 2019 Posted June 30, 2019 You can use a process manager for that (pm2): npm i -g pm2 # install pm2 cd /your/ragemp/server-files pm2 start server.exe --watch # starts the server.exe in watch mode. it will restart on any file changes inside the server-files folder pm2 stop server --watch # its important to stop it with the --watch flag otherwise it will still restart. pm2 logs server # will show you the logs 1
n0minal Posted July 1, 2019 Posted July 1, 2019 If you're in development environment just use nodemon $ nodemon --watch packages --watch client_packages --exec \"./server.exe\" 4
krane Posted November 8, 2023 Posted November 8, 2023 here is an updated variant from @n0minal which works as a 1liner `nodemon --watch packages --watch client_packages --exec ragemp-server.exe -e *` -e * is required since ndoemon not watches HTML files
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now