Init.sh / Container Lifecycle Questions

The primary source of truth isn’t Git, it’s the disk volume for your project that we mount at /app. We don’t do anything with git right now at startup. We do run pnpm to make sure your packages are installed, and then run your start command.

You can handle the shutdown event: End execution signal

The git repo is perfectly normal - it’s in the .git directory in your volume, and you can do anything you like with it. The only thing that’s unusual about it is that we commit to it periodically and as the container is shutting down.

Non-members can’t see the values in .env or files in .data. You can keep persistent data wherever you like, but we recommend .data because of the protection from non-members and because it’s already .gitignored.