Upload files to "documents"

This commit is contained in:
2026-06-10 13:22:34 +00:00
parent 188c015f4a
commit 82a4a51358
5 changed files with 88 additions and 0 deletions
@@ -0,0 +1,72 @@
# AppFactory Production Deployment and Recovery Guide
## Configuration
Set before deployment:
```bash
CLEAR_USERS=true
```
Options:
```bash
CLEAR_USERS=true
CLEAR_USERS=false
```
- true = delete users table, first Google login becomes admin
- false = preserve users
## Download
```bash
mkdir -p ~/Downloads
cd ~/Downloads
curl -L -o restore-appfactory.sh http://jiri-uhlir.eu/downloads/restore-appfactory.sh
curl -L -o services.tar.gz http://jiri-uhlir.eu/downloads/services.tar.gz
chmod +x restore-appfactory.sh
```
## Restore
```bash
sudo bash ./restore-appfactory.sh "$PWD/services.tar.gz" root 2>&1 | tee restore.log
```
## Optional user cleanup
```bash
DB="/opt/appfactory/data/appfactory/appfactory.db"
if [ "$CLEAR_USERS" = "true" ]; then
cp "$DB" "$DB.before-users-clean-$(date +%Y%m%d-%H%M%S)"
sqlite3 "$DB" "delete from users;"
fi
```
## Validation
```bash
/opt/appfactory/workspace/appfactory-tools/maintenance/preflight-check.sh
docker ps --format 'table {{.Names}}\t{{.Status}}'
```
Expected:
APPFACTORY PREFLIGHT: READY
## Running Applications
Verify user applications are running:
```bash
docker ps -a --format 'table {{.Names}}\t{{.Status}}'
```
Examples:
- test-dotnet-api
- microsoft-365-service