monolayer Docs
monolayer Docs
Introduction

Getting Started

Install monolayer in your AWSAdd a GitHub App

User Guide

Platform

PostgresObject StorageTasksCronsRealtimeLifecycle Workloads
Deployment ArchitectureProcfile

Other

Feedbackmonolayer SDK Docsmonolayer.dev
Capabilities

Lifecycle Workloads

Run automatically detected or Procfile-defined commands during deployment.

Use lifecycle processes to run commands before or after specific deployment phases.

Application Lifecycle Workloads

monolayer discovers lifecycle processes through framework automation or a root Procfile.

FrameworkAutomatic DetectionProcfile
Next.js❌✅
React Router✅ Database creation and migration processes (only SSR)✅
Vite single-page application (SPA)❌❌
FastAPI✅ Database creation and migration processes✅

Lifecycle Process Reference

  • bootstrap. Runs initialization or setup commands once when monolayer creates your application environment. Define this process in a Procfile.
  • beforeRollout. Runs immediately before monolayer serves the new application version. Define this process in a Procfile.
  • afterRollout. Runs after a successful application rollout. Define this process in a Procfile.
  • createDatabase. Runs database creation commands once during the initial environment deployment. React Router and FastAPI can contribute this process automatically, or you can define it in a Procfile.
  • migrateDatabase. Runs database schema migrations during every deployment before monolayer serves the new application version. React Router and FastAPI can contribute this process automatically, or you can define it in a Procfile.

For Procfile syntax and examples, see Procfile lifecycle processes.

Realtime

Add real-time updates to your application frontend.

Deployment Architecture

Learn how monolayer deploys your applications to AWS

On this page

Application Lifecycle WorkloadsLifecycle Process Reference