WordPress site on Google Cloud - Restart Node JS and create cron job to restart it automatically

Job ID: 30681111

Budget: $49 – $50 AUD

I have a WordPress site running on Google Cloud. The site has a chat system. The chat uses NodeJS to send messages and file attachments live, with no need to refresh page. You don’t need to understand the messaging process, you just need to set up NodeJS according to instructions (“NODE JS setup instructions.docx”) and everything will work correctly. When NodeJS is running correctly, we can send instant messages and file attachments in our chat system.

When set up, NodeJS runs indefinitely until the server is stopped. When server is restarted/rebooted, NodeJS does not restart automatically, it needs to be restarted manually again, following the same attached instructions. This has been done about 10 times now. Whenever there is server restart/reboot, we need to restart NodeJS manually according to the attached instructions. This is inconvenient. You need to create a cron job or similar to ensure that Node starts automatically following server restart/reboot

In summary, you will

1 - restart Node JS according to instructions
2 - write cron job for future automatic restart following server reboot
Related categories: PHP Linux WordPress Node.js Google Cloud Platform