How can I access server files?

Hi
Curious, how can I access the files/directory from where hugo built-in server serves. Obviously, it must be a temp/cache like folder where hugo builds, store and serve on http://localhost:1313.

Actually often we’ve to test or run other tools like now I want to run php script so I simply want to run php -S localhost:1314 and serve the script(I placed in static folder) directly along the side the hugo server.

Other time taking approach is to build every time and serve PHP from public folder

the default hugo server will serve the files from memory.

you can pass --renderToDisk to tell hugo to render it to disk.

--renderToDisk           render to Destination path (default is render to memory & serve from there)

More about server flags: hugo server --help

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