Open smile-yan opened 5 years ago
hi @smile-yan,
i'm not sure on your exact setup but if you just need a way to call hexo generate
from the dashboard, you can set that as your deploy command.
in your hexo config, add
admin:
deployCommand: hexo generate
then hitting DEPLOY on the deploy screen will run generate for you.
let us know if that works for you.
I got this when click Deploy:
Error: spawn /usr/bin/hexo generate ENOENT
admin:
deployCommand: /usr/bin/hexo generate
I found I needed to place my deploy commands in a script and then reference the script from the deployCommand
config.
My hexo-deploy.sh
script contains:
#!/bin/bash
hexo clean && hexo generate && hexo deploy
I need execute 'hexo generate' to generate static files after I write a blog by using hexo-admin.
Could you tell me how to do this job ? I want to do this job only by click some links. Thanks !