Jump to content

Recommended Posts

Posted

How to restart the server, without close "server.exe" and restart the rage mp?

May be somebody know function or something else? At wiki didnt find the answer

 

Thanks ! ^)

Posted

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.

Posted
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

  • 4 weeks later...
Posted

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 3
Posted
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 !) 

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...