KamalKhan

KamalKhan supports this item

Supported

This author's response time can be up to 1 business day.

21 comments found.

Hi, How do I add a fixed server ip to this?

You need to add the -w (or—website) flag as I mentioned in the previous comment.
Try this in pm2 when calling the script as I do not know how you can set arguments in pm2.
pm2 start server.js -- -w http://example.com
where http://example.com is the url to your wordpress home page.

You may also set an environment variable for WEBSITE.
e.g.
WEBSITE=http://example.com

Okay thank you, will check it out.

by
by
by
by
by
by