Hi @ekothe, this is not really about publications but can you tell me how to deploy your site locally? Its tedious to push every little change to my github repo to see my live site. Thanks
Hugo includes a web server for development purposes.
thanks for that! however, when I try to run hugo server
I get :
Error: Unable to locate Config file. Perhaps you need to create a new site.
Run hugo help new
for details. (Unsupported Config Type ββ)
When I try to run hugo new site my-website
it says
Error: /home/nabila/Desktop/github/my-website already exists and is not empty
any suggestions?
You have to run hugo server from the root of your site. Using your example:
$ cd /home/nabila/Desktop/github/my-website
$ hugo server
This assumes that my-website
is an actual hugo site, and not something else
hi @zwbetz, i have actually run hugo server
from my website directory /home/nabila/Desktop/github/my-website
and that is when I got the following error:
Error: Unable to locate Config file. Perhaps you need to create a new site.
Run `hugo help new` for details. (Unsupported Config Type ββ)
If you can, share your code. This will be much easier to troubleshoot if so.
Reading that error message again, it canβt find your config file. So do you have a config.toml
file?
sure thing @zwbetz, my code is located here: https://github.com/nabsabraham/my-website
a thing to note, (sorry if this is confusing), when using my linux work machine and running hugo server in the root folder, i get:
Error: Unable to locate Config file. Perhaps you need to create a new site.
Run hugo help new
for details. (Unsupported Config Type ββ)
when running hugo server in the root folder on my Windows machine, I get:
Total in 1002 ms Watching for changes in C:\Users\Nabilla Abraham\Desktop\github\my-website\{content,static} Watching for config changes in , C:\Users\Nabilla Abraham\Desktop\github\my-website\config\_default Environment: "development" Serving pages from memory Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender Web Server is available at //localhost:1313/ (bind address 127.0.0.1) Press Ctrl+C to stop
however, the localhost:1313
is completely blank, but my website does deploy, see here: www.nabilaabraham.com
appreciate all your help!
So I notice your site uses the newer config dir feature
config/
βββ _default
βββ config.toml
βββ languages.toml
βββ menus.toml
βββ params.toml
So Iβd check that your hugo version is updated to the most recent (currently 0.54.0
)
My Windows hugo version:
Hugo Static Site Generator v0.54.0-B1A82C61 windows/amd64 BuildDate: 2019-02-01T09:42:02Z
But your Windows setup runs fine, no? I meant your Linux setup, where you get the βConfigβ error.
Sorry about the late reply! I have updated my linux environment and it runs fine
My windows environment says its deployed the site locally to port 1313 however when I try to go to that address, it is a blank page. I am using Netlify for all deploys - is it something I have to change there?
Good deal.
So your Windows setup and Netlify deploy wouldnβt affect each other in that way.
You could try clearing your browserβs history/cache, a different browser, etc