sarfraznawaz2005/gitup
Composer 安装命令:
composer require sarfraznawaz2005/gitup
包简介
Laravel package to upload git commits to server(s) via (s)ftp.
README 文档
README
Laravel package to upload git commits to server(s) via (s)ftp.
DISCLAIMER
This package is not fully tested, use it at your own risk!
Screenshot
Why
We have multiple servers eg live, staging, testing, etc and client wanted us to upload task/story # X to staging only or story Y to live only that's when it was hard to track down files worked upon earlier and then upload them selectively; a time consuming process and nuisance so we created this package so that we can easily upload with one click selected stories to asked servers.
Requirements
- PHP >= 5.6
gitadded to PATH envFTPandZipPHP extensions (both ship with PHP and usually turned on)league/flysystemFTP wrapper used by gitUp. (comes with laravel by default)league/flysystem-sftpLibrary used by gitUp to upload files via SFTP.
Installation
Install via composer
composer require sarfraznawaz2005/gitup
For Laravel < 5.5:
Add Service Provider to config/app.php in providers section
Sarfraznawaz2005\GitUp\GitUpServiceProvider::class,
Run php artisan vendor:publish to publish package's config and migration file. You should now have config/gitup.php file published. It will also publish migration file in database/migrations folder.
Run php artisan migrate to create commits table in your database.
Check and update config/gitup.php file to setup config options including S(FTP) server information where you would like to upload.
By default, gitup UI is available at /gitup route.
How it Works
For selected commits, we extract files out of them and create zip archive along with an script to extract this zip archive. The zip archive and extract script are then uploaded to selected server where extract script extracts the uploaded zip archive. Once the upload process is done, both zip archive and extract script are deleted from the server.
Uploading zip archive along with extract script has huge speed benefits as all committed files get uploaded in one shot as opposed to uploading each committed file individually.
Similar Project
License
This code is published under the MIT License. This means you can do almost anything with it, as long as the copyright notice and the accompanying license file is left intact.
sarfraznawaz2005/gitup 适用场景与选型建议
sarfraznawaz2005/gitup 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 37 次下载、GitHub Stars 达 20, 最近一次更新时间为 2018 年 04 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「deploy」 「upload」 「ftp」 「laravel」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 sarfraznawaz2005/gitup 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 sarfraznawaz2005/gitup 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 sarfraznawaz2005/gitup 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
The file manager intended for using Laravel with CKEditor / TinyMCE / Colorbox
blueways deployer recipes
The Laragoon utility package
A sleek PHP wrapper around rclone with Laravel-style fluent API syntax
A Highly Opinionated Symfony3/4 Deployer Recipe
A remote FTP & S3 file manager using VueJS
统计信息
- 总下载量: 37
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 20
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-04-30

