Skip to main content

Module add

Module add 

Source
Expand description

rst add <folder> - register a folder as an app without answering the whole init questionnaire.

Where it lands depends on where it lives: inside the frontend repo’s apps/ it joins EXTRA_APPS and shares that bind mount, and beside the repo it joins ROOT_APPS and gets a mount of its own.

Structs§

Declared
An app as it is declared: the entry in the list, plus the name its settings are keyed on. For a name:dir pair those differ.
Found

Enums§

Placement

Functions§

already_listed
appended
Append to a space separated list, leaving the order it already has.
find_declared
Find a declared app by either half of a name:dir pair, so removing it works whichever half the person remembers.
first_script
The first of wanted that the folder’s package.json defines.
forget
Drop the app from the list and take its port and command with it, from both files. Leaving the settings behind would put them back on the next app that happens to take the same name.
free_port
A port nothing else in the workspace has claimed.
locate
Resolve a folder name the way a person would mean it: the frontend repo’s apps/ first, then beside the repo.
record
Write the new app to both files: .env is what compose reads, and run.config.toml is what init rewrites .env from. Writing one alone means the next init --update either misses it or drops it.
runnable
Something to run. A folder with no manifest, or a library with only build and test scripts, is not an app.
service_name
A folder beside the repo is usually named for the project it belongs to - althaqeel-seeder in the althaqeel workspace. The project prefix says nothing you do not already know, so the service is just seeder.
start_command
The command that starts the app.
without