Search code examples
phpnode.jslaravelvue.jsforge

Forge: Restart NodeJS daemon after deploy


I've setup my first Laravel Forge site that runs a VueJS 2.0 server side rendered app.

I've setup quick deploy and a daemon that keeps it running, but on deploys it doesn't restart. The same app is running which mean that only the new CSS is updated. How can I make the daemon restart or should I do something else?

EDIT: I'm using nginx


Solution

  • You can get the ID of the daemon in forge, and then add this to your deploy script

    sudo supervisorctl restart daemon-YOURDAMEONID:daemon-YOURDAMEONID_00