iescarro/deployphp 问题修复 & 功能扩展

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

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

iescarro/deployphp

最新稳定版本:v0.1.7

Composer 安装命令:

composer require iescarro/deployphp

包简介

Simple PHP deployer for git differences between hashes.

README 文档

README

DeployPHP is a simple and efficient PHP tool for deploying your application to an FTP server by only uploading the differences between two Git hashes. This tool can be easily installed via Composer and configured with adeploy.json file.

Features

  • Deploy to an FTP server
  • Only upload changes between two Git hashes
  • Simple configuration

Installation

You can install DeployPHP via Composer:

composer require iescarro/deployphp

Configuration

Create a deploy.json file in the root of your project with the following structure:

{
  "host": "127.0.0.1",
  "username": "ftpuser",
  "password": "password",
  "default_remote_directory": "/",
  "target_hash": "HEAD",
  "source_hash": "fbd4937c5b1b6f79e88f0df4db138cd5f995e76a",
  "excluded_files": [
    ".gitignore",
    ".htaccess",
    "composer.json",
    "deploy.json",
    "README.md"
  ]
}

Configuration Parameters

  • host: The hostname of your FTP server.
  • username: Your FTP username.
  • password: Your FTP password.
  • target_hash: The Git hash of the target commit.
  • source_hash: The Git hash of the source commit.

Usage

Once you have configured your deploy.json file, you can trigger the deployment using the following command:

php vendor/iescarro/deployphp/deploy

This command will compare the differences between the specified Git hashes and upload the changed files to the FTP server.

Contributing

We welcome contributions to improve DeployPHP. Please fork the repository and create a pull request with your changes.

License

DeployPHP is open-sourced software licensed under the MIT license.

Contact

For any questions or issues, please open an issue on GitHub or contact the maintainer.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-08-17