- Python/Flask Backend - SQLAlchemy Models (notes, tasks, templates, users) - Gunicorn + Nginx Deploy-Konfiguration - Static Assets (CSS/JS) - Jinja2 Templates
23 lines
391 B
Bash
Executable File
23 lines
391 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
APP_DIR="/opt/notesmanager"
|
|
PYTHON_BIN="python3"
|
|
|
|
sudo mkdir -p "$APP_DIR"
|
|
sudo cp -r ./* "$APP_DIR/"
|
|
cd "$APP_DIR"
|
|
|
|
$PYTHON_BIN -m venv .venv
|
|
source .venv/bin/activate
|
|
pip install --upgrade pip
|
|
pip install -r requirements.txt
|
|
|
|
cat <<'MSG'
|
|
Installation abgeschlossen.
|
|
Starten mit:
|
|
cd /opt/notesmanager
|
|
source .venv/bin/activate
|
|
python run.py
|
|
MSG
|