Run Teaspoon locally
In your workspace, choose Export app for one running deployment or Export workspace for your project history and all deployments. The ZIP records the Teaspoon source commit in the build field in manifest.json. A single-app archive also records its deployment ID in revision. Keep the ZIP private because it contains your application data.
Restore a single app
- Install or build
tsprunfor your computer from the commit recorded inbuild. - Extract the ZIP into a new directory and change into that directory.
- Start
tsprunusing the manifest’srevisionand the bundleddatadirectory.
tsprun main.tsp --addr 127.0.0.1:8080 --local-only \
--revision <manifest-revision> --log-dir data
Open the local app or request GET http://127.0.0.1:8080/apis. Check a value you recognize from the browser before making new writes.
Restore a workspace on Linux
Install tsprun and tspideio from the commit recorded in build, then extract the workspace ZIP into a new directory. In that directory, start the I/O service in one terminal.
tspideio --addr 127.0.0.1:8090 --data-dir io \
--tsprun "$(command -v tsprun)"
In a second terminal in the same directory, create the local service configuration and start the restored IDE.
printf '%s\n' '{"io":{"url":"http://127.0.0.1:8090"}}' > services.json
tsprun tspide.tsp --addr 127.0.0.1:8091 --local-only \
--log-dir ide --services services.json --revision tspide_v1
Open the restored IDE. Its project metadata, revisions and deployment state are in the restored ide and io directories. AI relay sessions and public app links belong to the web deployment.