I want to run multiple instances of grip at the same time.
Manually selecting port every time is tedious, so I thought I'll let my OS choose it for me by using port 0.
This works very well through API:
$ python -c 'from grip import serve; serve(port=0)'
* Running on http://localhost:35739/ (Press CTRL+C to quit)
But it doesn't work on the command-line:
$ grip . 0
* Running on http://0:6419/ (Press CTRL+C to quit)
(Um, no, that's not what I wanted! :unamused:)
$ grip . localhost:0
Error: Invalid address 'localhost:0'
* Running on http://localhost:6419/ (Press CTRL+C to quit)
I want to run multiple instances of grip at the same time. Manually selecting port every time is tedious, so I thought I'll let my OS choose it for me by using port 0.
This works very well through API:
But it doesn't work on the command-line:
(Um, no, that's not what I wanted! :unamused:)
(Still not what I wanted…)