mirror of
https://github.com/storytold/artcraft.git
synced 2026-10-20 17:02:53 -04:00
Stop the bootstrap scripts claiming the dev webapp targets the local backend
It never has: setDevelopment() is commented out in main.tsx, so the dev server falls through to its /v1 proxy at api.storyteller.ai. Both bootstrap epilogues and the seed script now say so and print the VITE_DEV_API_HOST needed to actually reach the local backend.
This commit is contained in:
@@ -344,9 +344,9 @@ The dev stack is bootstrapped. Next steps:
|
||||
./script/bootstrap/seed_demo_user.sh
|
||||
Credentials: ${DEMO_USERNAME} / ${DEMO_PASSWORD}
|
||||
|
||||
3. Start the webapp (binds http://localhost:4201; in dev it talks to
|
||||
${DEV_BACKEND_URL} automatically):
|
||||
cd frontend && npx nx dev artcraft-webapp
|
||||
3. Start the webapp (binds http://localhost:4201). NB: by default the dev
|
||||
webapp proxies to PRODUCTION — aim it at your backend explicitly:
|
||||
cd frontend && VITE_DEV_API_HOST=${DEV_BACKEND_URL} npx nx dev artcraft-webapp
|
||||
|
||||
Health checks at any time:
|
||||
./script/bootstrap/dev_stack_doctor.sh
|
||||
|
||||
@@ -19,7 +19,8 @@
|
||||
# After it succeeds:
|
||||
# .\script\bootstrap\windows\run_backend_dev.ps1 # API on :12345
|
||||
# .\script\bootstrap\windows\seed_demo_user.ps1 # demo login
|
||||
# cd frontend; npx nx dev artcraft-webapp # webapp on :4201
|
||||
# cd frontend; npx nx dev artcraft-webapp # webapp on :4201, but see
|
||||
# # VITE_DEV_API_HOST below
|
||||
param(
|
||||
[switch]$Yes,
|
||||
[switch]$SkipTools,
|
||||
@@ -457,8 +458,9 @@ The dev stack is bootstrapped. Next steps:
|
||||
.\script\bootstrap\windows\seed_demo_user.ps1
|
||||
Credentials: $DemoUsername / $DemoPassword
|
||||
|
||||
3. Start the webapp (binds http://localhost:4201; in dev it talks to
|
||||
$DevBackendUrl automatically):
|
||||
3. Start the webapp (binds http://localhost:4201). NB: by default the dev
|
||||
webapp proxies to PRODUCTION - aim it at your backend explicitly:
|
||||
`$env:VITE_DEV_API_HOST = "$DevBackendUrl"
|
||||
cd frontend; npx nx dev artcraft-webapp
|
||||
|
||||
Health checks at any time:
|
||||
|
||||
@@ -120,4 +120,5 @@ if (-not $walletRow) {
|
||||
Write-Log "Demo user is ready."
|
||||
Write-Log " Username: $DemoUsername"
|
||||
Write-Log " Password: $DemoPassword"
|
||||
Write-Log "Log in at the webapp /login page (http://localhost:4201/login once 'nx dev artcraft-webapp' is running)."
|
||||
Write-Log "Log in at http://localhost:4201/login once the webapp is running - start it with"
|
||||
Write-Log "VITE_DEV_API_HOST=$DevBackendUrl set, or it will talk to production instead."
|
||||
|
||||
Reference in New Issue
Block a user