1- # Text-to -SQL Deployment Guide
1+ # QueryMind -SQL Deployment Guide
22
3- Complete guide to deploying the Text-to -SQL system on AWS EC2 (Ubuntu 22.04).
3+ Complete guide to deploying the QueryMind -SQL system on AWS EC2 (Ubuntu 22.04).
44
55---
66
@@ -34,8 +34,8 @@ Complete guide to deploying the Text-to-SQL system on AWS EC2 (Ubuntu 22.04).
3434``` bash
3535ssh -i ~ /.ssh/your-key.pem ubuntu@< PUBLIC_IP>
3636sudo apt-get install -y git
37- git clone https://github.com/your-org/text-to-sql .git /opt/text-to -sql
38- cd /opt/text-to -sql
37+ git clone https://github.com/ridash2005/QueryMind-SQL .git /opt/querymind -sql
38+ cd /opt/querymind -sql
3939```
4040
4141---
@@ -54,13 +54,13 @@ This installs Python 3.11, Node.js 20, nginx, and system dependencies.
5454
5555``` bash
5656export OPENAI_API_KEY=" sk-your-actual-key-here"
57- export APP_DIR=/opt/text-to -sql
57+ export APP_DIR=/opt/querymind -sql
5858sudo bash infra/configure_env.sh
5959```
6060
6161Verify the ` .env ` was created with correct permissions:
6262``` bash
63- ls -la /opt/text-to -sql/.env # Should show -rw------- (600)
63+ ls -la /opt/querymind -sql/.env # Should show -rw------- (600)
6464```
6565
6666---
@@ -80,7 +80,7 @@ scp -i ~/.ssh/your-key.pem \
8080 olist_geolocation_dataset.csv \
8181 olist_order_reviews_dataset.csv \
8282 product_category_name_translation.csv \
83- ubuntu@< PUBLIC_IP> :/opt/text-to -sql/data/raw/
83+ ubuntu@< PUBLIC_IP> :/opt/querymind -sql/data/raw/
8484```
8585
8686Or set ` KAGGLE_AUTO_DOWNLOAD=1 ` in ` .env ` and install the Kaggle CLI:
@@ -94,7 +94,7 @@ pip install kaggle
9494## Phase 6: Install Application
9595
9696``` bash
97- cd /opt/text-to -sql
97+ cd /opt/querymind -sql
9898bash infra/install_app.sh
9999```
100100
@@ -167,7 +167,7 @@ Open your browser at `http://<PUBLIC_IP>/`
167167## Updating the Application
168168
169169``` bash
170- cd /opt/text-to -sql
170+ cd /opt/querymind -sql
171171git pull origin main
172172source venv/bin/activate && pip install -r requirements.txt
173173cd frontend && npm ci && npm run build && cd ..
0 commit comments