How do you start a hugo server by just pointing to a project directory?

Hi there, I would like to start using hugo. Sofar installation of the cli was quick, I initialised a project and installed a theme with a little more then needed effort.

Now in my linux box, I just want to run ‘hugo server --projectDir /random/path’ and things to work. Is this possible and if not, how do I make this work without CD-ing to the project directory and running ‘hugo server’?

I am a dumbass, just use ‘hugo server -s /random/path’

I had to look through some existing tickets, because there are 6+ different Dir options in the docs. Got confused between contentDir and layoutDir

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.