sarfraznawaz2005/gitup 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

sarfraznawaz2005/gitup

Composer 安装命令:

composer require sarfraznawaz2005/gitup

包简介

Laravel package to upload git commits to server(s) via (s)ftp.

README 文档

README

Laravel 5.1 Laravel 5.2 Laravel 5.3 Laravel 5.4 Laravel 5.5 Total Downloads

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

Main Window

Main Window

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
  • git added to PATH env
  • FTP and Zip PHP extensions (both ship with PHP and usually turned on)
  • league/flysystem FTP wrapper used by gitUp. (comes with laravel by default)
  • league/flysystem-sftp Library 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 我们能提供哪些服务?
定制开发 / 二次开发

基于 sarfraznawaz2005/gitup 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 37
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 20
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 20
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-04-30