ENG1N3X

Server restart

Recommended Posts

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 ! ^)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
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 !) 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.