chore: add processed data, outputs, and proposal
- Add processed/ ML features and GCN model inputs - Add Outputs/ GIS analysis, deploy configs, lit review - Add proposal document for 湖北省卫生健康科技项目 - Enable full data portability for cross-machine development
This commit is contained in:
26
Outputs/deploy-frontend/install.sh
Executable file
26
Outputs/deploy-frontend/install.sh
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
echo "=== CBPOA Frontend Deployment ==="
|
||||
|
||||
# Install nginx if not present
|
||||
if ! command -v nginx &>/dev/null; then
|
||||
echo "Installing nginx..."
|
||||
sudo apt update && sudo apt install -y nginx
|
||||
fi
|
||||
|
||||
# Copy files
|
||||
sudo mkdir -p /var/www/cbpoa
|
||||
sudo cp -r dist/* /var/www/cbpoa/
|
||||
sudo chown -R www-data:www-data /var/www/cbpoa
|
||||
|
||||
# Configure nginx
|
||||
sudo cp nginx.conf /etc/nginx/sites-available/cbpoa
|
||||
sudo ln -sf /etc/nginx/sites-available/cbpoa /etc/nginx/sites-enabled/cbpoa
|
||||
sudo rm -f /etc/nginx/sites-enabled/default
|
||||
|
||||
# Test and reload
|
||||
sudo nginx -t && sudo systemctl reload nginx
|
||||
sudo systemctl enable nginx
|
||||
|
||||
echo "=== Frontend deployed at http://$(hostname -I | awk '{print $1}') ==="
|
||||
Reference in New Issue
Block a user