Rename folders #4545
Replies: 1 comment
-
|
Hi, The reason "AI" instructions fail is that they usually forget the dependency chain. Serverpod is a monorepo structure where packages rely on hardcoded relative paths. Yes, you can rename the folders (e.g., changing myapp_server to backend), but you must manually update references in at least 4 critical locations. If you miss one, the generator or docker will fail. Here is the correct manual instruction if you really want to do it:
Inside your Flutter app (myapp_flutter/pubspec.yaml): Update the dependency path to the client. YAML dependencies:
Open docker-compose.yaml (in the server folder): Update the build: context or volume paths if they reference the folder name. Open Dockerfile: Check COPY commands.
Open .vscode/launch.json. Update "cwd" (Current Working Directory) and "program" paths to match your new folder names. Otherwise, debugging (F5) will not start.
Bash cd your_new_server_name Good luck! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
Is it possible to rename the folders created by
$serverpod create myapp
It should be according AI,,, but no one gives correct instruction.
( For some reason the default names are disturbing me :) )
Beta Was this translation helpful? Give feedback.
All reactions