Forever is a simple CLI tool for ensuring that a given script runs continuously (i.e. forever).
1 | cd location_of_blog_conf_hexo |
Create a cron to handle restart1
2$ crontab -u root -e
@reboot sudo /usr/local/bin/forever start --uid blog --append -c 'hexo server -p 6000 --cwd /pathtoblog' /pathtoblog