Jump to content
RAGE Multiplayer Community

Server restart


ENG1N3X
 Share

Recommended Posts

9 часов назад, MrPancakers сказал:

There's no RageMP function for this, you'd have to make something up with NodeJS or another language to have something like that. You'd have to Google for that in that case if closing and reopening the server.exe is too much.

Ok. Thx

Link to comment
Share on other sites

  • 4 weeks later...

So if you want to restart the server without closing and starting it everytime (Use pm2)
SHIFT+RIGHTCLICK in the server directory -> Open Command Windows :-

npm install pm2 -g

 

and then start the server by typing :-

pm2 start server.exe --watch

'--watch' watches for any file change in the current and its subdirectories (so now if you edit any files and hit save then the server will restart)

Now to get the console display of server.exe type :-

pm2 monit

 

Shoutout to Jengas(russian channel)

  • Like 2
Link to comment
Share on other sites

2 часа назад, r4nchy сказал:

So if you want to restart the server without closing and starting it everytime (Use pm2)
SHIFT+RIGHTCLICK in the server directory -> Open Command Windows :-

npm install pm2 -g

 

and then start the server by typing :-

pm2 start server.exe --watch

'--watch' watches for any file change in the current and its subdirectories (so now if you edit any files and hit save then the server will restart)

Now to get the console display of server.exe type :-

pm2 monit

 

Shoutout to Jengas(russian channel)

Thank u very match !) 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...