| .. | ||
| nginx.conf | ||
| README.md | ||
| setup-vscode-domain.sh | ||
| vscode-nginx.conf | ||
🚀 Deployment Configuration for mnemo_cards_web_v2
📁 Directory Structure
mnemo_cards_web_v2/
├── deploy.sh # Wrapper script (run this!)
└── deploy/
├── nginx.conf # Main domain nginx config (memo-cards.online)
├── vscode-nginx.conf # VSCode server nginx config
├── setup-vscode-domain.sh # VSCode domain setup script
└── README.md # This file
Centralized deployment scripts are located at:
tools/deploy/web-app/
├── config.sh # Deployment configuration
└── deploy.sh # Main deployment script
🎯 Usage
Deploy Web App
From the project root directory:
cd mnemo_cards_web_v2
./deploy.sh
This wrapper script will:
- Use centralized config from
tools/deploy/web-app/config.sh - Build the Flutter web app locally with
-O4optimization - Deploy to
memo-cards.onlineusingdeploy/nginx.conf
Setup VSCode Server (Optional)
cd deploy
./setup-vscode-domain.sh
⚙️ Configuration
All deployment settings are in tools/deploy/web-app/config.sh:
- Server IP:
147.45.152.129 - Main domain:
memo-cards.online - API URL:
https://api.memo-cards.online:8081
📝 Project-Specific Files
Files in deploy/ directory are project-specific:
nginx.conf- Main domain configurationvscode-nginx.conf- VSCode server configurationsetup-vscode-domain.sh- VSCode setup automation
🔄 How It Works
- Local Build: Flutter web app is built on your local machine
- Upload: Built files are uploaded via
rsync - Server Setup: Nginx, SSL, and firewall are configured automatically
🛡️ SSL Certificates
The deployment script tries Let's Encrypt first, then falls back to self-signed certificates.
📚 More Info
See tools/deploy/web-app/README.md for detailed documentation on centralized deployment scripts.