Framework guides

Cloud: Create izcode.toml recognizes the common frameworks of nine language groups and writes a ready-to-release izcode.toml for them. This page shows what it detects and the file it writes for each framework.

Generate the file#

  1. Open the project folder Local, SSH, Remote Peer or cloud: detection reads the files wherever they are. The file is meant to run in a cloud workspace.
  2. Run Cloud: Create izcode.toml If more than one framework matches, or the folder is a monorepo (apps in apps/, packages/ or services/), pick one from the list. For an app in a sub-folder, the commands run in that folder.
  3. Review it Lines starting with # NOTE: at the top need your attention. If izcode.toml already existed, the result is in izcode.proposed.toml instead.

Every generated file is version 2 and follows the same pattern: [runtime] pins the language, [setup] installs dependencies in the workspace, [build] and [release] run in each release, the production server is the base command and [env.dev] swaps in the dev server with reload. The full key reference is on izcode.toml.

What is detected#

GroupFrameworksRuntime fromRelease steps
Node.jsNext.js (also static export), Nuxt, React Router, Remix, SvelteKit, Astro, Angular, NestJS, Vite, Create React App, Express, Fastify, Hono, Koa.nvmrc, engines; npm, pnpm, Yarn, Bunbuild script; migrate script or prisma migrate deploy
PythonDjango, FastAPI, Flask (with Celery).python-version, requires-python; uv, Poetry, pipcollectstatic; migrate, Alembic, flask db
GoGin, Echo, Fiber, chigo.modgo build
RustAxum, Actix, Rocket, Poemrust-toolchaincargo build --release
JavaSpring Boot (Maven, Gradle), Quarkusjava.version, Gradle toolchainpackage, bootJar
PHPLaravel, Symfonycomposer.json (ext-* → apt packages)assets and caches; migrate --force
RubyRails (Sidekiq, Solid Queue, GoodJob), Sinatra, Rack.ruby-version, Gemfileassets:precompile; db:prepare
.NETASP.NET Coreglobal.json, TargetFrameworkdotnet publish
StaticHTML, Hugo, Jekyll, MkDocs, Docusaurus, VitePressgeneratorgenerator's build command

A project that matches nothing gets a short commented file built from package.json, if there is one.

Examples#

These are the files IZ Code writes for sample projects. Names such as shop, api or src/Api come from the sample and are replaced by your project's names.

Node.js#

Node presets read the Node version from .nvmrc or engines, and use npm, pnpm, Yarn or Bun from your lock file. Server frameworks run their production server in a release and their dev server in the workspace. Single-page apps and static exports become a kind = "static" service in a release and a dev server in the workspace. A migrate script or Prisma adds a [release] step; BullMQ and similar queues with a worker script add a worker.

izcode.toml
version = 2

[runtime]                          # installed with mise (tool = "version") and apt
node = "22"

[setup]                            # dependencies
command = "npm ci"
watch = ["package-lock.json"]

[build]                            # in every release, before the services
command = "npm run build"
env = { NODE_ENV = "production" }

[services.web]
command = "npx --no-install next start -p $PORT"
port = 3001
public = true
health = { http = "/", grace = "60s" }

[env.dev]                          # the workspace: dev servers with reload
services.web.command = "npx --no-install next dev -p $PORT"

[env.prod]                         # release VMs
services.web.env = { NODE_ENV = "production" }

Python#

Python presets read the version from .python-version or requires-python, and use uv, Poetry or pip with a .venv. Gunicorn or Uvicorn serve releases; runserver or --reload serve the workspace. Django gets collectstatic and migrate, Alembic gets alembic upgrade head, and Celery becomes a worker.

  • gunicorn does not serve /static: add WhiteNoise (pip install whitenoise) or a static service.
izcode.toml
version = 2

[runtime]                          # installed with mise (tool = "version") and apt
python = "3.11"
uv = "latest"
packages = ["libpq-dev", "build-essential"]

[setup]                            # dependencies
command = "uv sync --frozen && uv pip install gunicorn"
watch = ["uv.lock"]

[build]                            # in every release, before the services
command = "uv run --no-sync python manage.py collectstatic --noinput"

[release]                          # once per release, after the build: migrations
command = "uv run --no-sync python manage.py migrate --noinput"

[services.web]
command = "uv run --no-sync gunicorn shop.wsgi --bind 0.0.0.0:$PORT --workers 3"
port = 8000
public = true
health = { tcp = true, grace = "60s" }

[services.worker]
kind = "worker"
command = "uv run --no-sync celery -A shop worker -l info"

[env.dev]                          # the workspace: dev servers with reload
services.web.command = "uv run --no-sync python manage.py runserver 0.0.0.0:$PORT"

Go and Rust#

Go reads go.mod (including toolchain) and builds a binary in [build]; Rust reads rust-toolchain and builds with cargo build --release --locked. The workspace uses go run or cargo run.

  • The server must listen on the PORT environment variable (os.Getenv("PORT")).
  • Several commands in cmd/: building ./cmd/server.
izcode.toml
version = 2

[runtime]                          # installed with mise (tool = "version") and apt
go = "1.23"

[setup]                            # dependencies
command = "go mod download"
watch = ["go.sum", "go.mod"]

[build]                            # in every release, before the services
command = "CGO_ENABLED=0 go build -trimpath -o bin/app ./cmd/server"

[services.web]
command = "./bin/app"
port = 8080
public = true
health = { tcp = true, grace = "30s" }

[env.dev]                          # the workspace: dev servers with reload
services.web.command = "go run ./cmd/server"

Java#

Java presets map java.version or the Gradle toolchain to a Temurin JDK, package a jar in [build] with a 45-minute timeout, and pass $PORT to the server. Spring Boot with Actuator gets an /actuator/health check.

izcode.toml
version = 2

[runtime]                          # installed with mise (tool = "version") and apt
java = "temurin-17"

[setup]                            # dependencies
command = "./mvnw -B -q dependency:go-offline"
watch = ["pom.xml"]

[build]                            # in every release, before the services
command = "./mvnw -B -DskipTests package"
timeout = "45m"

[services.web]
command = "java -XX:MaxRAMPercentage=75 -jar $(ls target/*.jar | grep -v original | head -n1) --server.port=$PORT"
port = 8080
public = true
health = { http = "/actuator/health", grace = "120s" }

[env.dev]                          # the workspace: dev servers with reload
services.web.command = "./mvnw spring-boot:run -Dspring-boot.run.arguments=--server.port=$PORT"

PHP, Ruby and .NET#

Laravel installs PHP 8.3 and the extensions your composer.json asks for as apt packages, caches config, routes and views, runs migrate --force, adds a queue worker and the scheduler as a cron job. Rails gets assets:precompile, db:prepare, Puma and a Sidekiq, Solid Queue or GoodJob worker. ASP.NET Core reads global.json or TargetFramework and runs dotnet publish.

  • Set APP_KEY (php artisan key:generate --show) and the database URL as secrets of the host.
izcode.toml
version = 2

[runtime]                          # installed with mise (tool = "version") and apt
node = "lts"
packages = ["php8.3-cli", "php8.3-mbstring", "php8.3-xml", "php8.3-curl", "php8.3-zip", "php8.3-bcmath", "php8.3-intl", "php8.3-sqlite3", "php8.3-pgsql", "php8.3-mysql", "composer", "unzip", "php8.3-redis"]

[setup]                            # dependencies
command = "composer install --no-interaction --prefer-dist --optimize-autoloader && npm ci"
watch = ["composer.lock", "package-lock.json"]

[build]                            # in every release, before the services
command = "npm run build && php artisan config:cache && php artisan route:cache && php artisan view:cache"

[release]                          # once per release, after the build: migrations
command = "php artisan migrate --force"

[services.web]
command = "php artisan serve --host=0.0.0.0 --port=$PORT --no-reload"
port = 8000
env = { PHP_CLI_SERVER_WORKERS = "4" }
public = true
health = { tcp = true, grace = "30s" }

[services.queue]
kind = "worker"
command = "php artisan queue:work --tries=3"

[cron.schedule]                    # release VMs only, UTC
schedule = "* * * * *"
command = "php artisan schedule:run"

[env.dev]                          # the workspace: dev servers with reload
services.web.command = "php artisan serve --host=0.0.0.0 --port=$PORT"

[env.prod]                         # release VMs
services.web.env = { PHP_CLI_SERVER_WORKERS = "4", APP_ENV = "production", APP_DEBUG = "false" }

Static sites#

Static site generators build in [build] and are served by the workspace's own static server in a release; the workspace runs the generator's dev server. Jekyll and VitePress are detected the same way.

izcode.toml
version = 2

[runtime]                          # installed with mise (tool = "version") and apt
hugo-extended = "latest"

[build]                            # in every release, before the services
command = "hugo --minify"

[services.web]
kind = "static"
dir = "public"
port = 8080
public = true

[env.dev]                          # the workspace: dev servers with reload
services.web.kind = "web"
services.web.command = "hugo server --bind 0.0.0.0 --port $PORT"

Tips#

TopicAdvice
PortYour server must read PORT and listen on 0.0.0.0. Generated files never use port 3000.
Static filesGunicorn does not serve Django's /static; add WhiteNoise or a static service.
SecretsPut keys such as APP_KEY, RAILS_MASTER_KEY or DATABASE_URL in Environment secrets ▸ prod, not in the file.
Long buildsRust and Java builds can be slow; raise [build] timeout, up to 2h.
Laravelphp artisan serve with PHP_CLI_SERVER_WORKERS suits moderate traffic.
DockerThere is no Docker in the workspace; a Dockerfile is not used.
Last updated: December 1, 2026Was this page helpful?