When I try to preview local docs with the build/preview scripts, I receive this error:
$ ./build.sh && ./preview.sh This build script is using Podman to run the build in an isolated environment. The preview is available at http://localhost:8080 usage: server.py [-h] [--cgi] [--bind ADDRESS] [port] server.py: error: argument port: invalid int value: 'public'
I tried moving the --directory flag to the end and received this error:
--directory
usage: server.py [-h] [--cgi] [--bind ADDRESS] [port] server.py: error: unrecognized arguments: --directory ./public
When I remove the --directory flag, it puts me into the root directory of the repo and I can manually navigate to the ./public directory. But it is somewhat inconvenient. I'm not familiar enough with this stack to know what a permanent fix is.
./public
I just tried it on Fedora 29 and I can't reproduce the error.
(I did dnf update before trying that to ensure my system was up-to-date.)
dnf update
@jflory7 What version of Fedora are you using?
Tried on Fedora 28 and I got the same error. Turns out that the version of python3 http.server in f28 doesn't support the --directory flag.
Merged @jflory7 's PR that fixes the issue.
Metadata Update from @asamalik: - Issue status updated to: Closed (was: Open)
@asamalik Yeah, I am still running F28. :see_no_evil: Thanks for poking around with this.
Login to comment on this ticket.