-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Hugo Deploy not working with environment flag #6824
Comments
/cc @vangent |
bep
added a commit
to bep/hugo
that referenced
this issue
Jan 31, 2020
bep
added a commit
to bep/hugo
that referenced
this issue
Jan 31, 2020
bep
added a commit
to bep/hugo
that referenced
this issue
Jan 31, 2020
bep
added a commit
to bep/hugo
that referenced
this issue
Jan 31, 2020
bep
added a commit
to bep/hugo
that referenced
this issue
Jan 31, 2020
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes.
The
hugo deploy
command does not respect the environment flag when set.Steps to reproduce
https://github.com/zbayoff/quickstart3
run
hugo deploy --environment staging
orhugo deploy --environment live
.should get
Error: no deployment targets found
try setting the
config
orconfigDir
explicitly, still should get an error, though these should not need to be set as they should default to the correct env directory.Running
hugo --environment staging
works fine.I think this issue goes hand in hand with #6794 as it seems the
hugo deploy
command is not respecting the global flags given to thehugo
command. This issue may also be relevant #6503 as thehugo config
command doesn't output the correct config per environment.The text was updated successfully, but these errors were encountered: