gsomoza / deployer-artifact
使用 Deployer.org 打包 Zip 和 Tar 文件
0.2.2
2024-04-05 14:03 UTC
Requires
- php: ^7.4||^8.0
- aws/aws-sdk-php: ^3.222
Requires (Dev)
- deployer/deployer: ^7.0@rc
This package is auto-updated.
Last update: 2024-09-05 15:03:35 UTC
README
此配置文件使用 [Deployer|https://deployer.org] 部署文件。
安装
-
在您的项目中安装 Deployer。
-
然后需要此配置文件
composer require gsomoza/deployer-artifact "^0.1"
用法
- 将配置文件导入您的
deploy.php
脚本
<?php // assumes you're running Deployer via PHAR: import(__DIR__ . 'vendor/autoload.php'); import('recipe/artifact.php');
- 将
artifact_path
设置为您文件所在的本机路径。
<?php set('artifact_path', 'build/project.zip');
- 使用
deploy:artifact
任务或其任何子任务。
示例
您可以在 [示例|https://github.com/gsomoza/deployer-artifact/tree/main/examples] 文件夹中找到示例设置。