mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-13 08:15:21 +02:00
feat: add devcontainer for local setup
This commit is contained in:
parent
a725fda274
commit
6b33addb25
26 changed files with 671 additions and 130 deletions
18
.devcontainer/scripts/post-start.sh
Executable file
18
.devcontainer/scripts/post-start.sh
Executable file
|
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# Intentionally no `http://localhost:PORT` URLs below — VS Code's terminal
|
||||
# URL detector adds any printed URL to its auto-forwarded-ports list and
|
||||
# then polls it, which produces ECONNREFUSED log spam every ~20s for ports
|
||||
# that aren't bound yet. The Ports panel auto-detects bound ports anyway.
|
||||
cat <<'EOF'
|
||||
Dograh devcontainer ready.
|
||||
|
||||
Start the backend:
|
||||
bash scripts/start_services_dev.sh
|
||||
|
||||
Start the UI in another terminal:
|
||||
cd ui && npm run dev -- --hostname 0.0.0.0
|
||||
|
||||
URLs and other workflow notes: docs/contribution/setup.mdx
|
||||
EOF
|
||||
Loading…
Add table
Add a link
Reference in a new issue