mirror of
https://github.com/kennethnym/aris.git
synced 2026-03-25 11:21:17 +00:00
Compare commits
5 Commits
fix/dashbo
...
fix/servic
| Author | SHA1 | Date | |
|---|---|---|---|
|
8a6263770a
|
|||
| b85109e2e2 | |||
| eb5149a500 | |||
| 02f519c29c | |||
| 59d14ee37b |
@@ -10,7 +10,7 @@
|
||||
"context": ".",
|
||||
"dockerfile": "Dockerfile"
|
||||
},
|
||||
"postCreateCommand": "bun install",
|
||||
"postCreateCommand": "bun install && ./scripts/setup-tailscale.sh",
|
||||
"postStartCommand": "./scripts/setup-git.sh && ./scripts/setup-nvim.sh",
|
||||
// Features add additional features to your environment. See https://containers.dev/features
|
||||
// Beware: features are not supported on all platforms and may have unintended side-effects.
|
||||
|
||||
@@ -17,3 +17,23 @@ services:
|
||||
FORWARD_URL=$(gitpod environment port open 4983 --name drizzle-studio-server | sed 's|https://||')
|
||||
echo "Drizzle Studio: https://local.drizzle.studio/?host=${FORWARD_URL}&port=443"
|
||||
cd apps/aelis-backend && bunx drizzle-kit studio --host 0.0.0.0 --port 4983
|
||||
|
||||
aelis-backend:
|
||||
name: Aelis Backend
|
||||
description: Hono API server for aelis-backend (port 3000)
|
||||
triggeredBy:
|
||||
- manual
|
||||
commands:
|
||||
start: |
|
||||
gitpod --context environment environment port open 3000 --name "Aelis Backend" --protocol http
|
||||
cd apps/aelis-backend && bun run dev
|
||||
|
||||
admin-dashboard:
|
||||
name: Admin Dashboard
|
||||
description: Vite dev server for admin-dashboard (port 5174)
|
||||
triggeredBy:
|
||||
- manual
|
||||
commands:
|
||||
start: |
|
||||
gitpod --context environment environment port open 5174 --name "Admin Dashboard" --protocol http
|
||||
cd apps/admin-dashboard && bun run dev --host
|
||||
|
||||
21
scripts/setup-tailscale.sh
Executable file
21
scripts/setup-tailscale.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Tailscale setup script
|
||||
# Authenticates with Tailscale if TS_AUTH_KEY is set and Tailscale is not already logged in
|
||||
|
||||
set -e
|
||||
|
||||
if [ -z "$TS_AUTH_KEY" ]; then
|
||||
echo "TS_AUTH_KEY is not set, skipping Tailscale login."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
STATUS=$(tailscale status 2>&1 || true)
|
||||
|
||||
if echo "$STATUS" | grep -qi "logged out\|stopped"; then
|
||||
echo "Tailscale is not authenticated. Logging in..."
|
||||
sudo tailscale up --accept-routes --auth-key="$TS_AUTH_KEY"
|
||||
echo "Tailscale login complete."
|
||||
else
|
||||
echo "Tailscale is already authenticated, skipping."
|
||||
fi
|
||||
Reference in New Issue
Block a user