redcode / deploy
适用于基于php项目的简单部署脚本
1.0.1
2015-07-02 08:58 UTC
Requires
- php: >=5.4.0
- symfony/console: >=2.5
- symfony/yaml: >=2.5
- zendframework/zend-inputfilter: 2.3.*
- zendframework/zend-servicemanager: >=2.0
- zendframework/zend-validator: 2.3.*
This package is not auto-updated.
Last update: 2024-09-23 14:19:36 UTC
README
此库提供了将基于php的应用程序部署到不同环境的一种简单方法。
安装
- 将以下行添加到您的composer.json文件中
"redcode/deploy": "1.0.*",
- 使用命令更新composer
composer update redcode/deploy
配置
安装过程完成后,您需要花费一些时间进行配置。应用程序支持yml和json格式的配置文件。
将config.yml添加到您的项目文件夹中
package: include: "./app ./src ./web" # files which will be included to the package exclude: ".git" # files which will be excluded from the package version: "vcs" # "vcs" - for getting from GIT, or any different for put as it version-strategy: "merged" # (this option make sense only if version set to "vcs") set to "tag" for getting version from the nearest tag, set to "branch" for getting from branch. environment: # at least one environment must be set dev: name: "dev" # host: "hostname" # hostname of the server path: "/var/www/website" # the location of the project on the server prod: name: "prod" host: "hostname2" path: "/var/www/website" command: local: # commands for executing on a local machine before: # before creating the package - "any command line to execute" after: # after creating the package - "any command line to execute" server: # commands for executing on a server before: # before build extracting - "any command line to execute" after: # after build extracting - "any command line to execute"
用法
cd project/path
bin/deploy