mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 20:43:04 +00:00
38f1981283
- Move all backend files from swingmusic/ to root level - Backend files now display directly on GitHub repository page - Keep client applications as submodules (swingmusic-android, swingmusic-desktop, swingmusic-webclient) - Update README to reflect new structure (no cd swingmusic needed) - Cleaner, more professional GitHub repository layout Files moved to root: - src/ (main source code) - pyproject.toml, requirements.txt, run.py - swingmusic.spec, uv.lock, version.txt - services/ Result: GitHub shows backend files directly while maintaining organized structure
19 lines
595 B
Python
19 lines
595 B
Python
from swingmusic.settings import TCOLOR, Metadata, Paths
|
|
from swingmusic.utils.network import get_ip
|
|
|
|
|
|
def log_startup_info(host: str, port: int):
|
|
print(f"{TCOLOR.HEADER}Swing Music v{Metadata.version} {TCOLOR.ENDC}")
|
|
|
|
addresses = [host]
|
|
|
|
if host == "0.0.0.0":
|
|
remote_ip = get_ip()
|
|
addresses.extend(["127.0.0.1"] + ([remote_ip] if remote_ip else []))
|
|
|
|
print("Server running on:\n")
|
|
for address in addresses:
|
|
print(f"{TCOLOR.OKGREEN}http://{address}:{port}{TCOLOR.ENDC}")
|
|
|
|
print(f"\n{TCOLOR.YELLOW}Data folder: {Paths().config_dir}{TCOLOR.ENDC}\n")
|