Skip to content

Commit 7e1b718

Browse files
fix(database-ui): move built db studio code under .dev
1 parent 085f8f1 commit 7e1b718

File tree

5 files changed

+4
-3
lines changed

5 files changed

+4
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
.dev/dependencies
55
.dev/coverage
66
.dev/artifacts
7+
.dev/db-studio
78
*/.dev/artifacts
89
*/.dev/coverage
910
*/.dev/dependencies

packages/cli/src/main/kotlin/elide/tool/cli/cmd/db/DbStudioCommand.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ internal class DbStudioCommand : AbstractSubcommand<ToolState, CommandContext>()
7272
private companion object {
7373
private const val STUDIO_API_SOURCE = "samples/db-studio/api"
7474
private const val STUDIO_UI_SOURCE = "samples/db-studio/ui/dist"
75-
private const val STUDIO_OUTPUT_DIR = ".db-studio"
75+
private const val STUDIO_OUTPUT_DIR = ".dev/db-studio"
7676
private const val STUDIO_INDEX_FILE = "index.tsx"
7777
private val SQLITE_EXTENSIONS = setOf(".db", ".sqlite", ".sqlite3", ".db3")
7878
}

packages/cli/src/projects/db-studio/run-db-studio.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ wait_for_server() {
5353

5454
# Start API server in background
5555
echo -e "${BLUE}[API Server]${NC} Starting on port 4984..."
56-
./gradlew :packages:cli:run --args="serve .db-studio/api/index.tsx" -q 2>&1 | sed 's/^/[API] /' &
56+
./gradlew :packages:cli:run --args="serve .dev/db-studio/api/index.tsx" -q 2>&1 | sed 's/^/[API] /' &
5757
API_PID=$!
5858

5959
# Wait for API server to be ready
6060
wait_for_server 4984 "API Server"
6161

6262
# Start UI server in background
6363
echo -e "${BLUE}[UI Server]${NC} Starting on port 8080..."
64-
./gradlew :packages:cli:run --args="serve .db-studio/ui" -q 2>&1 | sed 's/^/[UI] /' &
64+
./gradlew :packages:cli:run --args="serve .dev/db-studio/ui" -q 2>&1 | sed 's/^/[UI] /' &
6565
UI_PID=$!
6666

6767
# Wait for UI server to be ready
-23.6 MB
Binary file not shown.
-12 KB
Binary file not shown.

0 commit comments

Comments
 (0)