Deployment Mode
Graft allows you to change your deployment strategy at any time. This is useful if you start with direct uploads and later want to transition to a full GitHub Actions CI/CD workflow.
graft mode
Section titled “graft mode”Change the deployment mode of an existing project.
graft modeThe Workflow: When you run this command, Graft fetches your current mode and allows you to switch to any of the other Deployment Modes:
Git-Based Modes:
Section titled “Git-Based Modes:”- git-images: Full CI/CD. GitHub Actions builds images → pushes to GHCR → automated deployment via Graft-Hook.
- git-repo-serverbuild: CI/CD triggered. GitHub Actions tells your server to pull and build the code locally.
- git-manual: Remote repository setup without an automated CI/CD workflow.
Direct Deployment Modes:
Section titled “Direct Deployment Modes:”- direct-serverbuild: (Default) Source code is uploaded via
rsyncand built directly on the server.