Create a shell script to execute the Hexo server.
12cd ~nano starthexo.shThe contents can be as simple as the following:
123#!/bin/bashcd /path/to/hexo/workspacehexo serverMake the script executable.
1chmod u+x starthexo.shEdit your user’s crontab file to start Hexo on boot.
1crontab -u myusername -eAdd the following line to the bottom of your crontab file.
1@reboot sh starthexo.sh
Home | Archives | Categories | Tags | About |
|