Skip to main content
Live. This area is documented as current, user-reliable behavior.

Goal

Create a project that follows the GitHub-driven build and deployment path.

Prerequisites

  • GitHub connected
  • A repository StackShift can access

Workflow

1
Create a project from a GitHub repository.
2
Confirm framework/runtime detection and review the Advanced / Runtime section.
3
Override service type, workload type, resource preset, timeout, web3 detection, or persistent storage if the defaults are wrong.
4
Trigger the initial build and watch build output and deployment state.
5
Use subsequent pushes or manual redeploys as needed.

Node background workers

Keep the web service as Web and create a separate Worker service from the same repository. Its start command must target a committed worker entry point. Copy only the environment settings that worker needs. Production images omit development-only dependencies. For node —import tsx scripts/worker.ts, put tsx in dependencies, update the lockfile and commit the worker file before rebuilding. Alternatively compile the worker and start the resulting JavaScript. A successful build does not guarantee that the worker can start. Literal Node preload flags are checked for development-only packages before building, including through package scripts. Arbitrary shell commands and unrecognized Node options are not interpreted.

Repository analysis

StackShift analyzes one repository snapshot at the selected branch instead of fetching each source file separately. This avoids cumulative GitHub request delays during framework and writable-storage detection. GitHub App and user OAuth connections use the same analysis path; dependency and build-output directories remain excluded. Analysis remains bounded: 64 MiB compressed transfer, 256 MiB expanded archive, 100,000 archive entries and 64 MiB retained file content, with at most 512 KiB read per file. Incomplete downloads and exceeded limits return errors rather than successful partial analysis. If analysis fails, retry or use Advanced to set the actual framework, worker command and required storage; build-time storage checks still apply.

Review and deploy

Repository, folder and container-image sources use source selection followed by Review & Deploy. Valid detection does not require a generic confirmation. Advanced contains build commands, ports, processes, runtime limits and storage overrides; Change destination selects hosted or a healthy connected server. Source analysis allocates bounded temporary mounts for recognized cache and temp paths and a 1 GB persistent volume for other supported write locations. Persistent allocations remain subject to your plan and normal storage rules. Review shows the allocation before Deploy. Recognized literal SQLite paths are retained. Apps writing beside their code or across incompatible directories receive a specific correction instead. Environment-dependent paths are checked at build time against the effective runtime settings; source-only analysis does not treat an optional database fallback as mandatory storage. Changing repository, source type, branch or app directory clears the previous source’s environment values. Folder imports use only the selected directory, in precedence order .env, .env.production, .env.local, .env.production.local; development and example values are not imported. A failed replacement upload preserves the previous draft. Project creation and build submission reuse a stable key for retries. Once a project exists, retry continues its environment setup and initial build rather than creating another project. Drafts and source documents stay in memory; leaving the page warns before losing them. Refresh recovery is not provided and secrets are never persisted in browser storage. Multi-service manifests continue to Applications with their document and source/ref context. Review repositories and branches there before applying. Application releases still require GitHub sources; uploaded Application releases and automatic conversion of older manifest schemas are not supported.

How StackShift builds your app

  • Shiftpack is the native build engine: it detects your framework and runtime, then builds straight to an OCI image without you writing a Dockerfile.
  • It builds with BuildKit under the hood, so dependency caching and reproducible images come for free.
  • If your repo has its own Dockerfile and you choose Use a Dockerfile in project settings, that takes over instead of Shiftpack.
  • The Node.js version you pick in project settings (24 or 26) is used to build and run Node.js server apps. On Automatic, the version comes from engines.node in package.json, or Node 24 when that is not set. Static sites, including Next.js static exports and Vite apps, build with Node 24.
  • A Next.js app whose next.config sets output: 'export' unconditionally is built and served as a static site from out (or your distDir); a commented-out or conditional setting keeps the app on Node.js. A Vite app with a build script and no start script is served from its build output (dist, or build.outDir) rather than through vite preview.
  • For Laravel 11 and later, StackShift reads the health route from bootstrap/app.php (/up by default) when it builds your app, and checks that route over HTTP when the build is deployed. A health check path you set yourself takes priority.

Build with your own Dockerfile

Open the project, go to Settings, then Build and deploy. Under How we build it, choose Detect automatically (StackShift builder) or Use a Dockerfile. Once the project has built, the row also says which builder the last build used.
  • Use a Dockerfile builds the Dockerfile in your repository exactly as written. The Dockerfile path starts as Dockerfile. Change it for a file elsewhere, such as docker/api.Dockerfile.
  • The path is relative to your app folder. If the file is not there, StackShift looks from the repository root. It must stay inside the repository.
  • Your Dockerfile installs and builds the app, so the Install and Build commands and the Node.js version are hidden. Start stays: leave it empty to run the CMD in your Dockerfile, or fill it in to replace that CMD. Before each release still runs once before a new version goes live.
  • Your app must listen on the port set under Port, which StackShift also passes to it as PORT.
  • Choose Detect automatically again to go back to Shiftpack. The change applies from the next build.

What this path includes

  • Repository-backed project creation
  • Build and deployment lifecycle visibility
  • Project-level logs, domains, and rollback surfaces after deploy

What usually decides success

  • Repository access and installation scope
  • Correct build/runtime detection for the app
  • Post-build runtime configuration such as service type, workload type, ports, env vars, timeouts, and domains

How web3 detection behaves

  • StackShift can auto-detect common web3 frameworks and dependencies and mark the project as web3-enabled.
  • The detected value is still user-overridable in case the repo shape or dependency tree gives the wrong signal.
  • Hardhat-, Foundry-, and Anchor-style contract repos often fit contract-build workloads better than always-on web services.

Expected result

The project is connected to a GitHub repo and can build and deploy through StackShift.

Common failures

  • Repo permissions are incomplete
  • Build settings do not match the app runtime
  • Build succeeds but deploy fails due to runtime config

Connect GitHub

Link GitHub so project-style deployments can pull repositories and deployment metadata cleanly.

Builds, deployments, and logs

Understand the project execution lifecycle: build output, deploy state, rollback behavior, and where to inspect logs.

Project environment, domains, and previews

Configure the project surfaces that most often decide whether a deployment works after it builds, including runtime shape, domains, previews, and storage.