Initial commit: SmoothSchedule multi-tenant scheduling platform
This commit includes: - Django backend with multi-tenancy (django-tenants) - React + TypeScript frontend with Vite - Platform administration API with role-based access control - Authentication system with token-based auth - Quick login dev tools for testing different user roles - CORS and CSRF configuration for local development - Docker development environment setup 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
25
smoothschedule/merge_production_dotenvs_in_dotenv.py
Normal file
25
smoothschedule/merge_production_dotenvs_in_dotenv.py
Normal file
@@ -0,0 +1,25 @@
|
||||
from collections.abc import Sequence
|
||||
from pathlib import Path
|
||||
|
||||
BASE_DIR = Path(__file__).parent.resolve()
|
||||
PRODUCTION_DOTENVS_DIR = BASE_DIR / ".envs" / ".production"
|
||||
PRODUCTION_DOTENV_FILES = [
|
||||
PRODUCTION_DOTENVS_DIR / ".django",
|
||||
PRODUCTION_DOTENVS_DIR / ".postgres",
|
||||
]
|
||||
DOTENV_FILE = BASE_DIR / ".env"
|
||||
|
||||
|
||||
def merge(
|
||||
output_file: Path,
|
||||
files_to_merge: Sequence[Path],
|
||||
) -> None:
|
||||
merged_content = ""
|
||||
for merge_file in files_to_merge:
|
||||
merged_content += merge_file.read_text()
|
||||
merged_content += "\n"
|
||||
output_file.write_text(merged_content)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
merge(DOTENV_FILE, PRODUCTION_DOTENV_FILES)
|
||||
Reference in New Issue
Block a user