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 command, issues setting source file. Unable to find config. #6794

Closed
zbayoff opened this issue Jan 23, 2020 · 2 comments
Closed
Labels

Comments

@zbayoff
Copy link
Contributor

zbayoff commented Jan 23, 2020

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

0.63.1

Does this issue reproduce with the latest release?

Yes. It also occurs at 0.59.0

Hi All,

I am trying to configure the hugo deploy command on my site. The content, layout and site files are under the root site/ directory. When running hugo deploy -s site I get the error:

Unable to locate config file or config directory. Perhaps you need to create a new site.

However, when I run hugo server -s site, all works and the server fires up, finding the correct config file.

It seems that the regular hugo global flags are not working with the hugo deploy command. If I cd into the site/ folder, the hugo deploy command will work. This is not ideal, however as I need to run the hugo deploy command from the root folder.

Also, I am not able to specificy the output folder for the hugo deploy command. I can't do hugo deploy -d dist for example, which is what the built folder is called in our case.

I've created a test repo: https://github.com/zbayoff/quickstart

Thank you.

@zbayoff
Copy link
Contributor Author

zbayoff commented Feb 4, 2020

fixed with #6834

@zbayoff zbayoff closed this as completed Feb 4, 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.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant