Skip to content

Commit fb8f2db

Browse files
committed
feat: Enhance .env.example for SQLite configuration with recommended optimizations, update database settings in config, and add new entries for Jules AI integration. Update .gitignore to exclude production zip files.
1 parent 9e8d63f commit fb8f2db

3 files changed

Lines changed: 26 additions & 5 deletions

File tree

.env.example

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,24 @@ LOG_STACK=single
2020
LOG_DEPRECATIONS_CHANNEL=null
2121
LOG_LEVEL=debug
2222

23+
# SQLite (padrão dev/local - path relativo ao base_path)
2324
DB_CONNECTION=sqlite
25+
DB_DATABASE=database/database.sqlite
26+
27+
# SQLite - otimizações recomendadas (Laravel usa via config/database.php)
28+
# busy_timeout: ms para esperar lock (10000 = 10s evita "database is locked")
29+
# journal_mode: WAL = melhor concorrência leitura/escrita
30+
# synchronous: NORMAL = equilíbrio seguranca/performance (FULL = mais seguro, mais lento)
31+
DB_FOREIGN_KEYS=true
32+
DB_BUSY_TIMEOUT=10000
33+
DB_JOURNAL_MODE=WAL
34+
DB_SYNCHRONOUS=NORMAL
35+
36+
# MySQL/PostgreSQL (descomente e ajuste se usar em produção)
37+
# DB_CONNECTION=mysql
2438
# DB_HOST=127.0.0.1
2539
# DB_PORT=3306
26-
# DB_DATABASE=database/database.sqlite
40+
# DB_DATABASE=vertex_contas
2741
# DB_USERNAME=root
2842
# DB_PASSWORD=
2943

@@ -81,7 +95,13 @@ VITE_APP_NAME="${APP_NAME}"
8195
# RECAPTCHA_SITE_KEY=
8296
# RECAPTCHA_SECRET_KEY=
8397

84-
# Jules AI (Keep empty in example, set in .env or GitHub Secrets)
98+
# =============================================================================
99+
# Jules AI (Google) - https://jules.google.com
100+
# =============================================================================
101+
# API Key: gere em https://jules.google.com/settings (max 3 chaves ativas)
102+
# Uso: Jules REST API, integração CI/CD, automação via GitHub Actions
103+
# Repo vars: configure em Repository Settings > Environment Variables no Jules
104+
# GitHub: adicione JULES_API_KEY nos Secrets para workflows (jules-auto-merge.yml)
85105
JULES_API_KEY=
86106

87107
# Google Gemini API (Vertex Bot - Admin > Configurações > IA)

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
/storage/pail
2222
/vendor
2323
Homestead.json
24+
vertex-contas-producao*.zip
2425
Homestead.yaml
2526
Thumbs.db
2627
Modules/PanelUser/node_modules

config/database.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@
3737
'database' => env('DB_DATABASE', database_path('database.sqlite')),
3838
'prefix' => '',
3939
'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true),
40-
'busy_timeout' => null,
41-
'journal_mode' => null,
42-
'synchronous' => null,
40+
'busy_timeout' => env('DB_BUSY_TIMEOUT', 10000),
41+
'journal_mode' => env('DB_JOURNAL_MODE', 'WAL'),
42+
'synchronous' => env('DB_SYNCHRONOUS', 'NORMAL'),
4343
'transaction_mode' => 'DEFERRED',
4444
],
4545

0 commit comments

Comments
 (0)