Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deploy erorr #202

Open
aagradwan opened this issue Feb 4, 2020 · 2 comments
Open

deploy erorr #202

aagradwan opened this issue Feb 4, 2020 · 2 comments

Comments

@aagradwan
Copy link

hi jaredly.
I'v seen some bug at your hexo-admin repository
when I'm using deploy and tip whatwever thing is give my an erorr
Error: Config value "admin.deployCommand" not found

@shuroki
Copy link

shuroki commented Feb 23, 2020

@aagradwan
check if deployCommand 'your command' is added to 'deploy' in _config.yml.
If is, are you using windows?open /node_modules/hexo-admin/deploy.js.
use var proc = spawn((process.platform === "win32" ? "hexo.cmd" : "hexo"), ['d', '-g']);
replace var proc = spawn(command, [message], {detached: true});
delete _config.yml's deployCommand

@xechoz
Copy link

xechoz commented Mar 2, 2020

add these to your _config.yml

# hexo-admin authentification
admin:
  deployCommand: './deploy.sh'

add hexo deploy commands, or any bash scripts you like, into deploy.sh:

#!/bin/sh
hexo deploy --generate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants