Skip to content
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

posty serve command #27

Open
nickpegg opened this issue Jan 20, 2018 · 1 comment
Open

posty serve command #27

nickpegg opened this issue Jan 20, 2018 · 1 comment
Milestone

Comments

@nickpegg
Copy link
Owner

Add a CLI command like posty serve to fire up a HTTP web server to display the contents of the build output. Can likely use Python's built-in SimpleHTTPServer for this.

Needs to fiddle with site config to modify base URL to be the URL that the server is listening on, e.g. http://localhost:5000/.

Bonus points for running build and refreshing the page on a file change.

@nickpegg nickpegg added this to the v2.1 milestone Jan 20, 2018
@nickpegg
Copy link
Owner Author

Looks like refreshing will be easier than expected: https://pypi.org/project/livereload/

You give it a dir to serve, a dir to watch, and a function to call when the watch dir changes and magic!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant