- Updated Dockerfile to copy frontend files to meshchatx/public directory. - Modified .dockerignore to include meshchatx/public. - Added a new script to prepare the frontend directory. - Adjusted Vite configuration to output to the new public directory. - Updated GitHub Actions workflow to reflect changes in build process and artifact handling.
12 lines
192 B
Python
12 lines
192 B
Python
#!/usr/bin/env python3
|
|
from pathlib import Path
|
|
import shutil
|
|
|
|
TARGET = Path("meshchatx") / "public"
|
|
|
|
if TARGET.exists():
|
|
shutil.rmtree(TARGET)
|
|
|
|
TARGET.mkdir(parents=True, exist_ok=True)
|
|
|