承接 digifactory/laravel-pull-production-data 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

digifactory/laravel-pull-production-data

最新稳定版本:v4.2.1

Composer 安装命令:

composer require digifactory/laravel-pull-production-data

包简介

Pull your production storage folder and database to your local environment

README 文档

README

Latest Version on Packagist MIT Licensed run-tests Quality Score StyleCI Total Downloads

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 and DEPLOY_PATH (customisable in the config)
  • Setup SSH keys between your machine and the production machine
  • mysql binary available on your local machine
  • mysqldump 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:

Flag Description
-D, --no-database Whether the database should not be synced
-S, --no-storage-folder Whether the storage folder should not be synced
-C, --no-appending-commands Whether the appending commands should run

V4.1

Since this version it is possible to run any command when php artisan pull-production-data is completed. For example: this way you can anonimize data for local/testing purpose.

Preview

Screenshot of the command

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.

统计信息

  • 总下载量: 15.77k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 10
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 10
  • Watchers: 2
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-11-08