mirror of
https://github.com/evroon/bracket.git
synced 2026-07-31 02:10:50 -04:00
This PR migrates formatting in `frontend/` from Prettier to `oxfmt`,
including script wiring and dependency cleanup. It removes the Prettier
plugin/config path so formatting is handled by a single tool.
- **Script migration**
- Renamed/rewired formatting scripts in `frontend/package.json`:
- `prettier:check` → `format:check` (`oxfmt --check .`)
- `prettier:write` → `format:write` (`oxfmt .`)
- Updated dependent scripts:
- `test` now runs `pnpm run format:write`
- `openapi-ts` now runs `pnpm run format:write` after generation
- **Dependency cleanup**
- Removed `prettier-plugin-organize-imports` from `dependencies`
- Removed `prettier` from `devDependencies`
- Added `oxfmt` (latest stable at update time)
- **Config removal**
- Deleted `frontend/.prettierrc.js` (no longer used after migration)
- **Lockfile alignment**
- Updated `frontend/pnpm-lock.yaml` to reflect the dependency and script
ecosystem change
```json
{
"scripts": {
"format:check": "oxfmt --check .",
"format:write": "oxfmt .",
"openapi-ts": "openapi-ts && pnpm run format:write",
"test": "tsc && pnpm run format:write"
}
}
```
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Erik Vroon <11857441+evroon@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
63 lines
1.2 KiB
Plaintext
63 lines
1.2 KiB
Plaintext
---
|
|
title: Systemd
|
|
---
|
|
|
|
# Systemd
|
|
|
|
This section describes how to deploy Bracket (frontend and backend) as a Systemd service on Linux.
|
|
|
|
This assumes:
|
|
|
|
- You have installed `pnpm` and `uv`.
|
|
- You have a PostgreSQL cluster running.
|
|
- You have cloned Bracket in `/var/lib/bracket`.
|
|
- You have created a new user called Bracket with the permissions to read
|
|
and write in `/var/lib/bracket`.
|
|
|
|
Now, You can run the application using `systemd.service` files.
|
|
Below is a simple example of the service files for the backend and frontend:
|
|
|
|
## Backend
|
|
|
|
```systemd
|
|
[Unit]
|
|
Description=Bracket backend
|
|
After=syslog.target
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=bracket
|
|
WorkingDirectory=/var/lib/bracket/backend
|
|
ExecStart=uv run gunicorn -k uvicorn.workers.UvicornWorker bracket.app:app --bind localhost:8400 --workers 1
|
|
Environment=ENVIRONMENT=PRODUCTION
|
|
TimeoutSec=15
|
|
Restart=always
|
|
RestartSec=2s
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
```
|
|
|
|
## Frontend
|
|
|
|
```systemd
|
|
[Unit]
|
|
Description=Bracket frontend
|
|
After=syslog.target
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=bracket
|
|
WorkingDirectory=/var/lib/bracket/frontend
|
|
ExecStart=/usr/local/bin/pnpm start
|
|
Environment=NODE_ENV=production
|
|
TimeoutSec=15
|
|
Restart=always
|
|
RestartSec=2s
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
```
|