Skip to content

Commit 8053480

Browse files
committed
Changed devcontainer dev stack to match Admin + Portal default
no ref pnpm dev's default frontend fan-out was narrowed to Admin + Portal only (#29104/#29105), since most sessions never touch the public UMD apps and those watchers are the heaviest processes in the stack. The devcontainer's start-dev-stack.sh hardcoded the old full project list independently of root pnpm dev, so it needed the same trim to actually get the memory savings inside Codespaces/devcontainers. Public apps remain available via an explicit nx run-many invocation, called out in the script's output.
1 parent 2776308 commit 8053480

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.devcontainer/start-dev-stack.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,12 @@ nohup pnpm --filter ghost dev >> /tmp/ghost-backend.log 2>&1 &
2020
disown
2121

2222
{ echo "=== $(date -Is) starting frontends ==="; } >> /tmp/ghost-frontends.log
23+
# Matches root `pnpm dev`'s default fan-out (Admin + Portal only) — most
24+
# devcontainer sessions never touch the public UMD apps, and those watchers
25+
# are the heaviest processes in the stack. To also start them, run e.g.:
26+
# pnpm nx run-many -t dev --projects=@tryghost/comments-ui,@tryghost/signup-form,@tryghost/sodo-search,@tryghost/announcement-bar,@tryghost/admin-toolbar
2327
nohup pnpm nx run-many -t dev \
24-
--projects=@tryghost/admin,@tryghost/portal,@tryghost/comments-ui,@tryghost/signup-form,@tryghost/sodo-search,@tryghost/announcement-bar \
28+
--projects=@tryghost/admin,@tryghost/portal \
2529
>> /tmp/ghost-frontends.log 2>&1 &
2630
disown
2731

@@ -33,4 +37,8 @@ Ghost dev stack starting in the background.
3337
Gateway: http://localhost:2368/
3438
3539
Give it ~30-60s, then open http://localhost:2368/ghost/ for admin.
40+
41+
Only Admin + Portal dev watchers start by default. To add the public UMD
42+
apps (Comments, Signup Form, Sodo Search, Announcement Bar, Admin Toolbar):
43+
pnpm nx run-many -t dev --projects=@tryghost/comments-ui,@tryghost/signup-form,@tryghost/sodo-search,@tryghost/announcement-bar,@tryghost/admin-toolbar
3644
MSG

0 commit comments

Comments
 (0)