addtional flag for serve() `open_url`

Open
#225 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
devtools

Research direction

Start at the serve() implementation and inspect how open_url_delay determines the URL and port that are opened. Add a configurable URL parameter while preserving the existing behavior when it is not provided, then update or run the relevant serve() tests if present.

Written by the indexing model from the issue text.

Description

state: needs info

Hi,

When I set the server.serve(open_url_delay=0, host='127.0.0.3', port='35729'),
the url will be opened at port 35729, which is not my web server's listening port.

Could you add a key parameter to function serve that set the open_url?

Best,

Dominant language
Python
Stars
1.1k
Forks
149
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from lepture/python-livereload

All issues in lepture/python-livereload

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.