Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
File size: 1,645 Bytes
61d29fc | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | # Deployment Scripts
Scripts for setting up local development environments and deploying to production.
## Initial Setup
### install.sh
**Main installation script** - installs all dependencies and sets up the project.
**Usage:**
```bash
./scripts/deployment/install.sh
```
**What it does:**
- Installs Python dependencies
- Sets up virtual environment
- Configures environment variables
- Initializes databases
### setup-git-hooks.sh
Sets up pre-commit/pre-push hooks for code quality checks.
**Usage:**
```bash
./scripts/deployment/setup-git-hooks.sh
```
**Hooks installed:**
- TypeScript compilation check
- Python syntax check
- Frontend build test
## Scripts
### setup-local.sh
Sets up local development environment with required dependencies.
**Usage:**
```bash
./scripts/deployment/setup-local.sh
```
### setup_openstates_db.sh
Initializes and populates OpenStates PostgreSQL database with legislative data.
**Usage:**
```bash
./scripts/deployment/setup_openstates_db.sh
```
**What it does:**
- Downloads OpenStates PostgreSQL dumps
- Restores schema and data
- Sets up PostGIS extensions
### setup-local-postgres.sh
Alternative PostgreSQL setup for local development (without Docker).
**Usage:**
```bash
./scripts/deployment/setup-local-postgres.sh
```
**What it does:**
- Installs PostgreSQL 18 natively
- Configures local databases
- Sets up PostGIS extension
## Production Deployment
### deploy-databricks-app.sh
Deploys the application to Databricks Apps platform.
**Usage:**
```bash
./scripts/deployment/deploy-databricks-app.sh
```
**Requirements:**
- Databricks CLI configured
- Valid Databricks token in .env
|