chore: track deployment and expose frontend on LAN interfaces

This commit is contained in:
Vladimir Kutkovoy committed 2026-11-15 10:27:24 +00:00
commit db0f995997
7 files changed
+148

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
"""Create local Compose secrets once; keep existing credentials on subsequent runs."""
from pathlib import Path
import secrets
target = Path(__file__).resolve().parent.parent / '.env.local'
if target.exists():
print('.env.local already exists; keeping it.')
else:
target.touch(mode=0o600, exist_ok=False)
target.write_text(''.join(f'{name}={secrets.token_hex(size)}\n' for name, size in [
('MYSQL_PASSWORD', 24), ('MYSQL_ROOT_PASSWORD', 24), ('JWT_KEY', 48),
]))
print('Created .env.local.')