-
-
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
config.toml isn't read by default #1363
Comments
Reproduced on dac9c0d |
Same problem here, though It turns out that the Viper's way of searching config file handling was changed two days ago:
Thankfully, the author of the patch has included a note telling us how to get the old behaviour back: spf13/viper#73 (comment)
This fix works for me. Will commit a fix soon. :-) |
Fixed, thanks! On Wed, Aug 19, 2015 at 1:43 AM Anthony Fok notifications@github.com
|
After I create the site I forgot to navigate to the newly created directory on my command prompt which caused the issue |
As of 2015-08-16, Viper no longer searches the CWD for config file by default to avoid unintended surprises, but Hugo relies on the original behaviour. Fixed by calling viper.AddConfigPath(".") at the appropriate place. See spf13/viper#73 for more information. Fixes gohugoio#1363
9cece6640 Function sort: fix example labels (#1344) 84444120f Revert "Fix sample data for sort function (#1363)" (#1364) 05c8619f4 Fix sample data for sort function (#1363) 2beb1c0ed Fix "Configure taxonomies" title (#1361) cd777b9fb Fix sitemap configuration link (#1360) 52251fb42 Update the 'Customize Dates' example to not error (#1357) 1a14cc08a Update quick-start.md 17bb98a94 Add note about image metadata removal ec4f7bfff Update 404.md cebfb7a90 explaination that `weight` key is used for sorting 83190ff12 fix typo: "advance settings" → "advanced settings" 75743968c Update quick-start.md f1c64cd5a Improved documentation. 8af3b236c Update theme git-subtree-dir: docs git-subtree-split: 9cece6640095a21673a730201466ea636d2f8ded
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. |
Creating a new site and starting it
hugo server -t slim --buildDrafts
gives errors unable to find config.Error:
Adding this to the server call fixes the issue.
--config=config.toml
The text was updated successfully, but these errors were encountered: