Deploying your application with The Box is a streamlined process that involves running an installation script and leveraging GitHub Actions for continuous deployment.
The primary setup is handled by an interactive script. To start the installation wizard, run the following command from the root of the repository:
./bin/install.sh
This script will guide you through the following steps:
SSH_HOSTNAME: Your server’s hostname or IP address.SSH_PRIVATE_KEY: A private SSH key for accessing the server.SSH_KNOWN_HOSTS: Your server’s SSH host key.Once the initial setup is complete, your application will be automatically deployed whenever you push changes to the main branch. This is handled by the .github/workflows/deploy.yml GitHub Actions workflow.
The deployment workflow performs the following steps:
main branch (after the ci workflow succeeds) or can be triggered manually.docker compose to pull the latest images and start the application containers.Your application will be served via a Caddy reverse proxy, which also handles automatic SSL certificate provisioning.