-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Command line flag to open localhost:1313 #13040
Comments
I think we have had this discussion before, and I think the argument against it was that it wasn't a good/simple multi platform way to do this. But I see now that this exists, which looks solid enough: https://github.com/pkg/browser As to flags, I would suggest we go for -O (uppercase). I have tried to make it lowercase=configuration, uppercase=actions. Some of the uppercase are a little bit borderline, but I think it makes sense. So:
|
Hey, this is great -- thanks a ton for putting this in place. |
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. |
As a not-very-technical hugo user
I would like to generate my site locally to test (heavily using
hugo server -D
) and see it immediately upon build in a local browser.So that I can review it works as I would have expected.
hugo server -D && open http://localhost:1313
doesn't function, as it requires the server command to complete before opening the browseropen http://localhost:1313 && hugo server -D
does function as needed, but doesn't match the order one would think about these things.The best result would be
hugo server -D -o
-- so that the browser opens to the localhost immediately on the first build of the site, leaving the server running.The text was updated successfully, but these errors were encountered: