Skip to content

Commit c29b270

Browse files
chore(all): bump @typescript-eslint/eslint-plugin from 8.35.0 to 8.35.1
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 8.35.0 to 8.35.1. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.35.1/packages/eslint-plugin) --- updated-dependencies: - dependency-name: "@typescript-eslint/eslint-plugin" dependency-version: 8.35.1 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
1 parent b856d40 commit c29b270

File tree

92 files changed

+13577
-2338
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+13577
-2338
lines changed

.github/workflows/backend-release-pr.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ jobs:
5959
working-directory: services/backend
6060
run: npm run lint
6161

62+
- name: Check for console.log in backend
63+
working-directory: services/backend
64+
run: npm run check:no-console
65+
6266
- name: Prepare release
6367
working-directory: services/backend
6468
env:

.github/workflows/pr-checks.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,6 @@ jobs:
3737

3838
- name: Backend Lint
3939
run: npm run lint:backend
40+
41+
- name: Check for console.log in backend
42+
run: npm run check:no-console:backend

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,6 @@ services/backend/tests/e2e/test-data/*.db
7272
cookies.txt
7373
cookiejar.txt
7474
cookie.txt
75+
76+
coverage/
77+
persistent_data/database-test/

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ You can also run DeployStack on your own infrastructure for maximum control:
110110
```env
111111
DEPLOYSTACK_FRONTEND_URL=http://localhost:5173
112112
DEPLOYSTACK_ENCRYPTION_SECRET=your-very-secure-32-character-secret-key-here
113+
LOG_LEVEL=debug
113114
```
114115

115116
```bash

package-lock.json

Lines changed: 606 additions & 88 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"lint:md": "npx markdownlint-cli2 '**/*.md' '#node_modules' '#**/node_modules/**' '#.github' '#**/CHANGELOG.md' '#**/._*'",
1313
"lint:frontend": "cd services/frontend && npm run lint",
1414
"lint:backend": "cd services/backend && npm run lint",
15+
"check:no-console:backend": "cd services/backend && npm run check:no-console",
1516
"release:backend": "cd services/backend && npm run release",
1617
"release:frontend": "cd services/frontend && npm run release",
1718
"test:backend:e2e": "cd services/backend && npm run test:e2e",

services/backend/.env.example

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Database Configuration
2+
# Choose one: sqlite, turso
3+
DB_TYPE=sqlite
4+
5+
# SQLite Configuration (when DB_TYPE=sqlite)
6+
SQLITE_DB_PATH=persistent_data/database/deploystack.db
7+
8+
# Turso Configuration (when DB_TYPE=turso)
9+
# Get these values from: https://docs.turso.tech/sdk/ts/quickstart
10+
# TURSO_DATABASE_URL=libsql://your-database-url
11+
# TURSO_AUTH_TOKEN=your-auth-token
12+
13+
# Logging Configuration
14+
# Available levels: trace, debug, info, warn, error, fatal
15+
# Default: info (production), debug (development)
16+
LOG_LEVEL=info
17+
18+
# Other existing environment variables...
19+
NODE_ENV=development
20+
HOST=localhost
21+
PORT=3000
22+
COOKIE_SECRET=a-very-secret-and-strong-secret-for-cookies

services/backend/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

services/backend/README.md

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ A modular and extensible backend API for the DeployStack CI/CD platform, built w
99
- **Modular**: Well-organized code structure for maintainability
1010
- **Email System**: Integrated email service with Pug templates and SMTP support
1111
- **Global Settings**: Centralized configuration management with encryption
12-
- **Database Integration**: SQLite/PostgreSQL support with Drizzle ORM
12+
- **Database Integration**: SQLite/Turso support with Drizzle ORM
1313
- **Plugin System**: Extensible architecture for custom functionality
1414
- **Authentication**: Lucia-based authentication with role management
1515
- **Logging**: Comprehensive request logging with request IDs and timing
@@ -190,10 +190,44 @@ Create a `.env` file in the `services/backend` directory with the following vari
190190
```bash
191191
NODE_ENV=development
192192
PORT=3000
193-
LOG_LEVEL=debug
193+
HOST=localhost
194+
LOG_LEVEL=info
194195
DEPLOYSTACK_ENCRYPTION_SECRET=your-32-character-secret-key-here # Required for global settings encryption
195196
```
196197

198+
### Logging Configuration
199+
200+
DeployStack uses **Pino** logger with **Fastify** for high-performance, structured logging:
201+
202+
**Available Log Levels** (in order of severity):
203+
- `trace` (10) - Very detailed debugging information
204+
- `debug` (20) - Debugging information for development
205+
- `info` (30) - General information (default for production)
206+
- `warn` (40) - Warning messages
207+
- `error` (50) - Error conditions
208+
- `fatal` (60) - Fatal errors that cause application termination
209+
210+
**Environment-based Defaults:**
211+
- **Development**: `debug` level with pretty-printed, colorized output
212+
- **Production**: `info` level with structured JSON output
213+
- **Override**: Set `LOG_LEVEL` environment variable to any level
214+
215+
**Examples:**
216+
```bash
217+
# Show all logs including debug info
218+
LOG_LEVEL=debug npm run dev
219+
220+
# Production-like logging in development
221+
LOG_LEVEL=info npm run dev
222+
223+
# Only show errors and fatal messages
224+
LOG_LEVEL=error npm run start
225+
```
226+
227+
**Log Output Formats:**
228+
- **Development**: `[2025-07-03 10:48:06.636 +0200] INFO: ✅ Database initialization completed`
229+
- **Production**: `{"level":30,"time":"2025-07-03T08:48:06.636Z","msg":"Database initialization completed"}`
230+
197231
## 🤝 Contributing
198232

199233
We welcome contributions from the community! Here's how you can help:

0 commit comments

Comments
 (0)