Aggiunge Garage al compose di produzione e script di bootstrap.
Rails e Sidekiq usano S3 interno (http://garage:3900); setup_garage_production.sh configura bucket, chiavi e infra/.env sul server. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -74,6 +74,14 @@ docker compose up -d rails sidekiq
|
||||
docker compose exec -T rails bundle exec rails replay:e2e_garage
|
||||
```
|
||||
|
||||
### Produzione (`/opt/matchlivetv`)
|
||||
|
||||
```bash
|
||||
cd infra
|
||||
bash scripts/setup_garage_production.sh # garage.prod.toml, bucket, chiavi → .env
|
||||
# Rails/Sidekiq usano REPLAY_STORAGE_ENDPOINT=http://garage:3900 (rete Docker)
|
||||
```
|
||||
|
||||
**Credenziali in `.env`:** non compilarle a mano in `.env.example`. Lo script scrive in `infra/.env`:
|
||||
- `REPLAY_STORAGE_ACCESS_KEY_ID` = Key ID Garage (es. `GK...`)
|
||||
- `REPLAY_STORAGE_SECRET_ACCESS_KEY` = Secret mostrato una sola volta alla creazione chiave
|
||||
|
||||
Reference in New Issue
Block a user