Files
loki/package.json
T
g-butandClaude Sonnet 4.6 d973ad63a8 feat(local): add production server installer and systemd user service
Adds two scripts to run Cockpit locally as a production-grade service
instead of relying on `npm run dev`:

- scripts/cockpit-app.sh: wrapper that sources .env.local and launches
  the Next.js standalone server at localhost:3000. Unsets the bash
  HOSTNAME builtin so the server binds to 0.0.0.0 (not the machine's
  hostname which resolves to 127.0.1.1).

- scripts/install-cockpit-app.sh: one-shot installer that builds the
  production bundle, copies static assets into .next/standalone, writes
  ~/.config/systemd/user/cockpit-app.service, and enables + starts it.
  Accepts --skip-build to reinstall without rebuilding.

Run: npm run install-app  (or npm run build && npm run install-app --skip-build)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-16 21:27:56 +02:00

56 lines
1.4 KiB
JSON

{
"name": "cockpit",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"install-app": "bash scripts/install-cockpit-app.sh",
"migrate": "drizzle-kit push",
"lint": "eslint",
"check:design": "bash scripts/check-design-system.sh",
"smoke": "bash scripts/smoke.sh",
"prepare": "husky"
},
"dependencies": {
"@auth/drizzle-adapter": "^1.11.2",
"@base-ui/react": "^1.3.0",
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"date-fns": "^4.1.0",
"drizzle-orm": "^0.45.2",
"lucide-react": "^1.7.0",
"mermaid": "^11.14.0",
"next": "16.2.4",
"next-auth": "^5.0.0-beta.31",
"next-themes": "^0.4.6",
"postgres": "^3.4.8",
"react": "19.2.4",
"react-dom": "19.2.4",
"shadcn": "^4.1.2",
"stripe": "^22.1.1",
"tailwind-merge": "^3.5.0",
"tw-animate-css": "^1.4.0",
"zod": "^4.3.6"
},
"devDependencies": {
"@tailwindcss/postcss": "^4",
"@types/better-sqlite3": "^7.6.13",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"better-sqlite3": "^12.8.0",
"drizzle-kit": "^0.31.10",
"eslint": "^9",
"eslint-config-next": "16.2.4",
"husky": "^9.1.7",
"tailwindcss": "^4",
"tsx": "^4.21.0",
"typescript": "^5"
}
}