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 · 2 comments · Fixed by #6834
Closed

Hugo Deploy not working with environment flag #6824

zbayoff opened this issue Jan 29, 2020 · 2 comments · Fixed by #6834
Assignees
Milestone

Comments

@zbayoff
Copy link
Contributor

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
Copy link
Member

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 as completed in #6834 Jan 31, 2020
bep added a commit that referenced this issue Jan 31, 2020
@github-actions
Copy link

github-actions bot commented Feb 8, 2022

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants