digifactory / laravel-pull-production-data
Pull your production storage folder and database to your local environment
Installs: 12 251
Dependents: 0
Suggesters: 0
Security: 0
Stars: 10
Watchers: 3
Forks: 3
Open Issues: 9
Requires
- php: ^8.2
- illuminate/database: ^11.0
- illuminate/filesystem: ^11.0
- illuminate/support: ^11.0
- symfony/process: ^7.0
Requires (Dev)
- orchestra/testbench: ^9.0
- phpunit/phpunit: ^10.5
This package is auto-updated.
Last update: 2024-12-12 14:42:09 UTC
README
This package provides a command to download your production database and storage/app
folder to your local environment.
In the current state this package mainly scratches our own itch. Nonetheless this package can be used in nearly every Laravel environment.
The package assumes you have:
- Environment variables
DEPLOY_SERVER
andDEPLOY_PATH
(customisable in the config) - Setup SSH keys between your machine and the production machine
mysql
binary available on your local machinemysqldump
binary available on your production machine
Installation
You can install the package via composer:
composer require digifactory/laravel-pull-production-data --dev
You can publish the config file:
php artisan vendor:publish --provider="DigiFactory\PullProductionData\PullProductionDataServiceProvider" --tag="config"
Usage
By default both the database and the storage folder will be synced.
php artisan pull-production-data
The following flags are available:
Preview
Testing
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email helpdesk@digifactory.nl instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.