Initial commit: Notes Manager App (notes.braetter-int.de)
- Python/Flask Backend - SQLAlchemy Models (notes, tasks, templates, users) - Gunicorn + Nginx Deploy-Konfiguration - Static Assets (CSS/JS) - Jinja2 Templates
This commit is contained in:
22
install_local.sh
Executable file
22
install_local.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user