I've used pm2 in the past for my express apps. I really like it. How do I get it to run hexo
. Hexo starts with hexo server
rather than with a js entry point.
If you're running Linux or OSX, you can start it with a bash script.
Create a file called hexo.sh with the following
#!/usr/bin/env bash
hexo server
Then just simply
pm2 start hexo.sh
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With