Payload CMS integration for Capistrano with systemd support.
Add this line to your application's Gemfile:
gem 'capistrano-payloadcms'
And then execute:
bundle install
Add the following to your Capfile
:
require 'capistrano/pnpm'
require 'capistrano/payloadcms'
install_plugin Capistrano::PayloadcmsPlugin
install_plugin Capistrano::PayloadcmsSystemd
Add the following to your config/deploy.rb
:
# Payload CMS configuration
set :payloadcms_roles, :app
set :payloadcms_env, fetch(:stage)
cap payloadcms:start
- Start Payload CMS applicationcap payloadcms:stop
- Stop Payload CMS applicationcap payloadcms:restart
- Restart Payload CMS applicationcap payloadcms:status
- Check Payload CMS application statuscap payloadcms:install
- Install systemd servicecap payloadcms:uninstall
- Uninstall systemd servicecap payloadcms:build
- Build Payload CMS applicationcap payloadcms:check
- Check Payload CMS application (lint)
The gem automatically integrates with your deployment process:
- Stops the service before deployment
- Starts the service after successful deployment
- Restarts the service if deployment fails
- Node.js
- pnpm
- systemd (for service management)
The gem is available as open source under the terms of the LGPL-3.0 License.