Skip to content

Commit dc21451

Browse files
authored
Merge pull request #3 from 8gudbits/Development
Bug fix v2.x#1
2 parents 1370f81 + 3e39943 commit dc21451

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

QuickServe.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ def __init__(self, name, path, type):
8181
# Register the route to serve the favicon.ico file from the root directory
8282
@app.route("/favicon.ico")
8383
def serve_favicon():
84-
root_dir = os.path.dirname(os.path.abspath(__file__))
85-
return send_file(os.path.join(root_dir, "favicon.ico"), mimetype="image/x-icon")
84+
return send_file(os.path.join(current_directory, "favicon.ico"), mimetype="image/x-icon")
8685

8786

8887
# Route to render the main page
@@ -235,5 +234,6 @@ def os_path_basename(path):
235234

236235
# Run the app on the specified host and port for debugging
237236
if __name__ == "__main__":
238-
# serve(app, host="0.0.0.0", port=server_port)
239-
app.run(host="0.0.0.0", port=server_port, debug=True)
237+
# app.run(host="0.0.0.0", port=server_port, debug=True)
238+
print(f"Starting server on 'http://localhost:{server_port}'...")
239+
serve(app, host="0.0.0.0", port=server_port)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ After that, you can run the QuickServe app and the current folder will become th
8989

9090
## License
9191

92-
This project is licensed under the [MIT License](https://github.com/8gudbits/QuickServe/blob/main/LICENSE).
92+
This project is licensed under the [MIT License](LICENSE).
9393

9494
---
9595

0 commit comments

Comments
 (0)