Skip to content

Commit

Permalink
stutter
Browse files Browse the repository at this point in the history
  • Loading branch information
azuline committed Jun 23, 2024
1 parent 3c8266e commit dc3b3dc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
11 changes: 8 additions & 3 deletions scripts/serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@

PORT = 27771
Handler = http.server.SimpleHTTPRequestHandler
with socketserver.TCPServer(("", PORT), Handler) as httpd:
print(f"Serving build on http://localhost:{PORT}")
httpd.serve_forever()
while True:
try:
with socketserver.TCPServer(("", PORT), Handler) as httpd:
print(f"Serving build on http://localhost:{PORT}")
httpd.serve_forever()
break
except OSError:
PORT += 1
4 changes: 2 additions & 2 deletions src/index.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
<div class="flex flex-col gap-1">
<div class="bold">Software:</div>
<ul>
<li><a href="https://github.com/azuline/rose">Rosé</a>, a music management library with with CLI and virtual filesystem frontends.</li>
<li><a href="https://github.com/azuline/rose">Rosé</a>, a music management library with CLI and virtual filesystem frontends.</li>
</ul>
</div>
<div>
<div class="pt-2">
<a href="https://github.com/azuline/sunsetglow" class="text-xs fg-secondary">(source)</a>
</div>
</div>
Expand Down

0 comments on commit dc3b3dc

Please sign in to comment.