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

Hugo Deploy not working with environment flag #6824

Closed
zbayoff opened this issue Jan 29, 2020 · 1 comment · Fixed by #6834
Closed

Hugo Deploy not working with environment flag #6824

zbayoff opened this issue Jan 29, 2020 · 1 comment · Fixed by #6834
Assignees
Labels
Bug
Milestone

Comments

@zbayoff
Copy link
Contributor

@zbayoff zbayoff commented Jan 29, 2020

What version of Hugo are you using (hugo version)?

$ hugo version
Hugo Static Site Generator v0.63.1-CE9ACEB7 darwin/amd64 BuildDate: 2020-01-23T20:10:12Z

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 or hugo deploy --environment live.
should get Error: no deployment targets found

try setting the config or configDir 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 the hugo command. This issue may also be relevant #6503 as the hugo config command doesn't output the correct config per environment.

@bep bep added the Bug label Jan 29, 2020
@bep

This comment has been minimized.

Copy link
Member

@bep bep commented Jan 29, 2020

/cc @vangent

@bep bep modified the milestones: v0.64, v0.65 Jan 29, 2020
bep added a commit to bep/hugo that referenced this issue Jan 31, 2020
@bep bep self-assigned this 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
@bep bep closed this in #6834 Jan 31, 2020
bep added a commit that referenced this issue Jan 31, 2020
Fixes #6503
Fixes #6824
@fmotrifork fmotrifork mentioned this issue Feb 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants
You can’t perform that action at this time.