# Automatic builds Start with your source folder. Smolcloud detects your stack, builds a container image and runs your app. If the folder has a root `Dockerfile`, the same deploy command uses it. If your CI already builds and tests an image, [deploy that image by digest](image-publishing.md). ## Deploy a source folder From the folder that contains your app’s project files, run: ```sh smolcloud deploy APP_ID . ``` For a static site, the folder can contain just `index.html` and its assets. For a server app, include the files you use to install dependencies and start it in production, including your lockfile if you use one. The server must listen on `0.0.0.0` and read its port from `PORT` (default `3000`). Smolcloud recognises Node.js and Bun, Python, Go, PHP, Java, Ruby, Rust, .NET, Deno, Elixir, Gleam, C/C++ and shell projects. The [framework guides](frameworks.md) cover setup for individual stacks. ## Check the build commands Open the app’s **Deployments** tab and select the deployment. **Build preparation** shows the detected stack, build steps and start command for an automatic build. To change how it starts, set the production start command in your project or add a root `Procfile` with a `web:` entry. Use `railpack.json` for custom build steps or a root `Dockerfile` to supply the whole build. Set the port and health path in **Configuration**. For a new app using automatic settings, Smolcloud checks `/health` for a detected static site and `/` for other stacks. If your app answers on a different path, choose one that returns HTTP 200. Saved settings carry over to later deployments. ## Choose which files to upload Use `.dockerignore` for files you want to leave out. If you include `Dockerfile.dockerignore`, Smolcloud uses that file’s rules. Rules support Docker patterns, including `!` to include a file again. The CLI already skips `node_modules/`, `dist/`, `.env` files, `.ssh/`, `.npmrc`, and files ending in `.pem` or `.key`. An ignore rule can’t include those paths again. If your frontend produces `dist/`, build it from source during deployment, or deploy from inside the finished folder so `index.html` is at the root. The upload keeps the Dockerfile, ignore files and `innie-resources.json` when present. Credentials written into ordinary source files travel with the code. Keep secrets in backend runtime settings. ## Check dependency downloads Hosted builds can fetch public packages from npm, PyPI, the Go module proxy and checksum database, Packagist and public GitHub archives, RubyGems, Maven Central, the Gradle plugin portal, NuGet and crates.io. Selected toolchains and Debian, Ubuntu and Alpine package sources are also available. If a dependency lives in a private registry or on another download host, build the image in your own CI and [deploy it by digest](image-publishing.md). The same download rules apply to hosted Dockerfile builds. ## If deployment fails Run `smolcloud status APP_ID` to find the deployment ID. | What happened | Where to look | | --------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | | Detection or build failed | Run `smolcloud logs DEPLOYMENT_ID build`. Check the project folder, the start command and the first dependency or build step that failed. | | The build finished but the app never became healthy | Run `smolcloud logs DEPLOYMENT_ID runtime`. Check that the server started, listens on the configured port and answers on the health path. | ## Limits An ignore file must be a regular file with valid patterns, at most 64 KiB and 256 patterns. A symbolic link is rejected.