Project Settings
A project's Settings section is where you configure how Depfloy builds, deploys, and operates your project. Open the project and pick Settings under Configure in the menu beside the page, or go to /projects/{project}/settings.
The Settings section requires the same permission as updating the project — Owner, Admin, Manager, or Developer roles. See Members.
The section is a column of boxes: General, Repository, Build, Runtime and Persistent files share one Save bar; Maintenance and Danger zone sit below it and act on their own.
Change settings from the CLI, API, or an assistant #
You can update the build settings you use most often without opening this section. All three paths save only the fields you send and leave the rest of the project unchanged:
depfloy projects update 14532 \
--branch release \
--build-command 'npm run build:production' \
--auto-deploy=falseOmit the project id inside a repository linked with depfloy link. The command can change the
framework, branch, install/build/post-deploy commands, Node.js memory limit, auto-deploy, and the
PHP frontend-rebuild setting. Pass an empty command value, such as --build-command=, to return
that command to its framework default.
An assistant connected over MCP can make the same changes with update_project after
you confirm the call. For direct integrations, send only the fields you want to change to
PUT /api/v1/projects/{id}.
These actions do not start a deployment or replace the release currently serving traffic. The saved settings are used by the next deployment. The one exception is the root directory: changing it deploys the branch from the new folder (see Deploying from a monorepo).
Repository #
- Repository — the repository the project deploys from, chosen from the provider connected under Settings → Source control
- Branch — the branch Depfloy deploys from. Auto-deploy listens to pushes on this branch.
- Root directory — the folder of the repository the app is in, for example
apps/api. Empty means the repository root. See Deploying from a monorepo. - Auto deploy — deploys the project when a commit is pushed to the branch. See Auto-deploy.
- Deploy paths — shown while Auto deploy is on. See Deploy paths.
Changing the branch is the right tool when you want to promote a release branch to production without recreating the project. The next push to the new branch triggers a deployment automatically (if Auto deploy is on).
Groups and environments #
Two optional fields say what this project is relative to your other projects.
- Group — the name of the application whose environments you are running. The production, staging and dev copies of one shop share a group; an agency gets one group per client. Pick an existing group or create one from the same control by typing a name.
- Environment — Production, Staging or Dev. It shows as a badge beside the project name.
Leave either unset rather than guessing. An ungrouped, unlabelled project is an ordinary project and shows no badge, which is what every project already created looks like — nothing was assigned for you and nothing is treated as production because it was not labelled.
A group can hold more than one production environment; two regions of the same application are both production. Depfloy points it out when you create a second one, in case the project was meant to be staging, and then accepts it.
Deleting a group does not delete anything you deployed. The projects in it stay exactly as they are and become ungrouped, and the response says how many were affected.
Groups need no new permission: reading them comes with project:read and changing them with
project:update, the same permission that governs the rest of this section. They are also available
over the API and to an AI assistant over MCP.
Framework and build #
The Build box holds:
- Framework and language — Depfloy uses this to choose default install and build commands. If you switch frameworks, the defaults switch too.
- Install command — shows the framework’s default. Turn on its Override switch to replace it for this project (for example to use
pnpm installinstead ofnpm install). - Build command — the same, with its own Override switch (for example to use
npm run build:prodinstead ofnpm run build). - Deployment script — see Custom deployment command.
- Always rebuild frontend files — PHP projects only. When off, the previous frontend build is reused unless
resources/,package.json, a lock file or a Vite, Tailwind, PostCSS or TypeScript config changed. Laravel Mix projects always rebuild.
You do not need to put composer install, npm install, or php artisan migrate in these fields — Depfloy runs the framework-appropriate equivalents as part of the build pipeline.
Changing the framework #
You can change a project’s framework from this section. Depfloy asks you to confirm first, because the install, build and start commands all follow from it — a project whose repository doesn’t match the framework you pick will fail to build. The change applies from the next deployment; the release currently serving is left alone.
A project moves between frameworks of the same language:
- PHP — PHP, Laravel, Symfony, WordPress, Statamic
- JavaScript — Next.js, Nuxt, Remix, React Router, Astro
The other language’s frameworks aren’t selectable. Moving between PHP and JavaScript changes how the application is served, and needs a new project.
How Node.js applications are started #
For Node.js projects, Depfloy reads the start script in your package.json:
- A single simple command (for example
node server.js) — Depfloy runs it directly. Nonpmorshprocess sits between Depfloy and your application, which saves about 60–70 MB of memory per process, and the memory figure Depfloy reports is your application’s own. - Anything else — a
startscript that chains several commands (for exampleprisma migrate deploy && node server.js), or apackage.jsonwith aprestartorpoststartscript — Depfloy runsnpm run start, so every part of the script and its hooks runs.
This applies to every Node.js framework Depfloy runs as an application: Next.js, Nuxt, Remix, React Router and Astro.
Memory limit #
Node.js projects have a Memory limit field in the Runtime box. It is the ceiling the application is allowed to use — for example 512MB or 1GB. A process that goes past it is replaced with a fresh one.
Leave it empty to follow the server’s default rather than pinning a value on this project. The setting applies from the next deployment.
Which user your application runs as #
Node.js applications run as the depfloy user — the same user your deployments and Commands run as.
What that means in practice:
- Files your application writes — logs, caches, uploads — belong to
depfloy. Writing outside your project directory is refused. That boundary is deliberate: an application confined to its own directory cannot reach another project’s files. - Work that requires root is not available. Binding to a port below 1024 is the usual example, and it does not come up in a normal setup because Depfloy assigns your application a port and puts nginx in front of it.
- It applies once the server is on DPM 1.10.0 or later and the project has been deployed again.
Files your application created earlier may be owned by a different user. If it cannot write to a cache or log directory it used to write to, set the ownership once on the server:
sudo chown -R depfloy:depfloy <project_directory>Custom deployment command #
The Deployment script field in the Build box holds your custom deployment command. It runs after Depfloy finishes the build, the symlink switch is done, and the new release is live. Use it for post-deploy work that’s specific to your project — warming caches, signalling a dashboard, restarting a non-Depfloy-managed service.
# Example
php artisan cache:clear
php artisan queue:restartImportant guidelines:
- Don’t call
php artisan reverb:restart— Depfloy already restarts Laravel plugins (Reverb, Horizon, Octane, Nightwatch) for you. Calling them again from your script can hang the deployment. - Keep commands short. A custom command is for a quick post-deploy step, not a database backfill. Long-running work should live in your build pipeline or in a one-off Command.
See Developer Guide → Custom deployment commands for full guidance.
Markdown for AI agents #
A project Depfloy serves as static files can answer a request for markdown with a markdown version of the page. A client that sends Accept: text/markdown — an AI agent or an LLM reading your site — gets markdown; browsers keep getting HTML from the same address. Far fewer tokens, and text without the layout around it.
Turn it on with the Markdown for AI agents switch. It is off until you do, and saving it reloads nginx on the server.
There is nothing to add to your project. Depfloy writes the markdown from your built pages on every deployment. Headings, lists, links, code blocks and tables carry over; navigation, headers, footers, scripts and styles are left out, so what an agent reads is the page’s content rather than its furniture. If your own build already produces a .md file for a page, Depfloy leaves that file alone.
Check it from a terminal:
curl -H 'Accept: text/markdown' https://yoursite.com/One address now answers with two representations. A CDN that ignores Vary: Accept will hand whichever it cached first to every visitor — on Cloudflare, leave “Cache Everything” off for a site with this on.
The switch appears only on projects served as static files: an Astro site without an adapter, a Next.js static export, a React Router SPA. Where your application produces the response — Laravel, WordPress, a Next.js server build — there is no second representation to choose from, so the switch isn’t offered.
If Settings tells you no markdown was found in the project’s web root, the conversion hasn’t produced anything yet. Deploy again; if the message stays, the deployment log says why.
Auto-deploy #
- Auto deploy — when on, every push to the configured branch triggers a deployment. Depfloy installed the webhook when you created the project; turning Auto deploy off just disconnects Depfloy’s response to it (the webhook itself stays registered with your Git provider).
Deploy paths #
With Auto deploy on, a Deploy paths field appears under it. List paths or patterns, one per line, up to 20 — for example:
apps/web/**
packages/ui/**A push to the branch then deploys the project only when it changes a file under one of them. Leave the list empty to deploy every push.
- A path without wildcards covers everything below it:
apps/webmatchesapps/web/src/page.tsx. *stays within one folder;**spans folders.- Deploy paths apply to GitHub, GitLab and Bitbucket push webhooks.
- A push that creates the branch, and a push whose changed files cannot be listed, are deployed whatever the list says. On GitHub and Bitbucket a force push is deployed too. On GitLab, Depfloy compares the branch’s previous and new commit for every push, so a force push deploys only when that difference touches a listed path.
- Deploy, redeploys and rollbacks always run; the list only filters pushes.
Deploying from a monorepo #
A project can be deployed from one folder of a repository. Set Root directory to that folder — apps/api, say — when you create the project or in the Repository box here. The path is relative to the repository root and cannot contain ... Leave it empty when the app is at the repository root.
With a root directory, Depfloy installs, builds and runs the app from that folder. Composer, the Node.js build, the start command, .env, Laravel’s storage/, the nginx document root (for example apps/api/public), plugins, background jobs, schedules, Commands, the terminal and the Files section all use it.
Workspaces (pnpm, yarn, npm, bun). When the folder has no lockfile of its own, dependencies are installed where the nearest lockfile up the tree is — usually the repository root — and the build runs in the folder. Packages your app imports from elsewhere in the repository are available to the build.
Several apps, one repository. Create one project per folder. They can use the same repository and branch, on the same server. Give each one deploy paths — apps/web/** plus the shared packages/ui/**, for instance — so a push deploys only the projects whose files it changed.
Changing the root directory of an installed project deploys the branch from the new folder when you save. Background jobs and schedules that ran in the app’s folder move with it; ones with a different working directory keep theirs. If the folder is not on the branch, the deployment stops before going live and the current release keeps serving.
A root directory needs zero-downtime releases, which every new project uses. Projects installed from the application catalog and PHP copy destinations have no root directory or deploy paths.
Changing either field needs the same permission as the rest of this section. Over the API and MCP they are root_directory and deploy_paths — see Update a project.
Shared directories and files #
Beyond Depfloy’s default shared paths (.env, storage/), you can declare additional paths that should persist across deployments. The Persistent files box has two lists:
- Shared directories — whole directories, for example
uploadsordata/cache - Shared files — individual files, for example
storage/oauth-private.key
Useful for:
- User-uploaded files outside
storage/ - A directory of generated PDFs or reports you don’t want to regenerate every deploy
- Keys, certificates or config files your application writes at runtime
- Anything else where the contents are runtime state rather than versioned code
List each path relative to the project root. Depfloy creates the corresponding entry in the shared folder once and symlinks it into every release.
Existing content is kept #
If the path you share already exists in your running application, its contents are preserved. On the first deployment after you add it, Depfloy moves what’s already there into the shared folder and symlinks it into every release from then on — nothing is wiped.
This matters most for files your application generated at runtime and that aren’t in your repository. The classic example is Laravel Passport: the oauth-private.key and oauth-public.key pair produced by php artisan passport:keys. Add those two files to Shared files and the keys you already have on the server keep working, deployment after deployment.
This applies from the moment you share a path onwards. Files that were already lost on an earlier deployment don’t come back on their own — regenerate or re-upload them once, then add the path to the shared list so they persist from there.
Maintenance Mode #
Below the Save bar, the Maintenance box has a Maintenance mode switch. Turn it on to put the project behind a holding page; turn it off to bring the project online again. It takes effect immediately and does not wait for Save.
While maintenance mode is on, the project’s Nginx section (Nginx Configuration) is read-only — your custom snippets and SSL toggle are locked until you turn maintenance off again.
For a deeper guide on the holding page and customisation, see Maintenance Mode.
Delete project #
Delete Project, in the Danger zone box at the bottom of the Settings section, removes the project from Depfloy entirely. The dialog asks you to type the project’s name first. Files in the project directory on the server are removed along with the project’s history.
Deletion is irreversible. Move or back up anything you want to keep before deleting.
Related actions #
A few project-level actions live in the More menu at the top of every project section:
- Change Server — move the project to a different server
- Roll back — restore a previous successful deployment (see Deployments)