vysokeskoly/deb-build
最新稳定版本:7.1.0
Composer 安装命令:
composer require vysokeskoly/deb-build
包简介
Utilities for building deb packages of PHP apps
README 文档
README
Build deb package of PHP application using Robo task runner.
How to install and use
First install this package as composer dependency:
composer require vysokeskoly/deb-build:dev-master
- NOTE it must NOT be installed as
--devdependency, as it is needed forpostinstwhich is triggered on during installation on target server.
Then you can copy example RoboFile.php:
cd {YOUR_PROJECT}
cp vendor/vysokeskoly/deb-build/example/RoboFile.php ./RoboFile.php
Now just edit RoboFile.php and resolve all TODOs and check/edit other configuration.
Autoloading
- You can require
TasksandTraitsin your ownRoboFile.php. - Or you can use the predefined autoloader:
require __DIR__ . '/vendor/vysokeskoly/deb-build/src/autoload.php';
- It is not recommended (though it may be possible in some cases) to use
vendor/autoload.phpof your application, because it may (and most probably will) conflict withrobo.pharinner dependencies (likeSymfony).
Build a deb package
Build a deb package
sudo apt-get install ruby-dev gcc make
sudo gem install fpm
export BUILD_NUMBER=666
bin/robo build:deb
统计信息
- 总下载量: 19.98k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-03-20