insight-media / statamic-sync
A package for Statamic projects which provides console commands to synchronise content between local and remote projects.
Fund package maintenance!
Insight Media
Requires
- php: ^8.0
- illuminate/contracts: ^9.0
- spatie/laravel-package-tools: ^1.9.2
- spatie/ssh: 1.7.2
Requires (Dev)
- nunomaduro/collision: ^6.0
README
A console command to keep your local Statamic project in sync with the production version.
This package for Statamic projects provides a console command to pull the CMS content from your production version into your local version.
The package requires an SSH connection to your webserver.
Installation
You can install the package via composer:
composer require --dev insight-media/statamic-sync
You can optionally publish the config file with:
php artisan vendor:publish --tag="statamic-sync-config"
Add and edit the following env variables:
SSH_USER=user
SSH_HOST=yourproject.com
SSH_PORT=22
SSH_PATH=/var/www/project
Usage
php artisan statamic:sync
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.