PHPackages                             phwoolcon/deploy-automator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [DevOps &amp; Deployment](/categories/devops)
4. /
5. phwoolcon/deploy-automator

ActiveLibrary[DevOps &amp; Deployment](/categories/devops)

phwoolcon/deploy-automator
==========================

Deploy Automator for Phwoolcon Projects

014PHP

Since Sep 12Pushed 8y ago1 watchersCompare

[ Source](https://github.com/phwoolcon/deploy-automator)[ Packagist](https://packagist.org/packages/phwoolcon/deploy-automator)[ RSS](/packages/phwoolcon-deploy-automator/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Deploy Automator for Phwoolcon Projects
=======================================

[](#deploy-automator-for-phwoolcon-projects)

Work Flow
---------

[](#work-flow)

1. `[You]` `bin/build` then `cd ignore/release` then `git push` to `release` (or `staging`, `production`) branch;
2. `[Automator]` Captures the push webhook;
3. `[Automator]` Invoke `dep local:prepare prepare` to pull the codes;
4. `[Automator]` Invoke `rsync` to push codes under `./workspace/current` to the remote server(s);
5. `[Automator]` Invoke `bin/cli migrate:up` and `bin/dump-autoload` on the remote server(s).

Requirements
------------

[](#requirements)

- [`Comopser`](https://github.com/composer/composer)
- [`Deployer`](https://github.com/deployphp/deployer)

Usage
-----

[](#usage)

### 1. Install PHP

[](#1-install-php)

```
add-apt-repository ppa:ondrej/php
apt update
apt install php7.1-fpm php7.1-gd php7.1-cli php7.1-curl php7.1-dev php7.1-json php7.1-mbstring php7.1-mcrypt php7.1-mysql php7.1-xml php7.1-zip php-redis
```

### 2. Install Phalcon

[](#2-install-phalcon)

```
curl -s https://packagecloud.io/install/repositories/phalcon/stable/script.deb.sh | bash
apt install php7.0-phalcon
```

### 3. Install Deploy Automator

[](#3-install-deploy-automator)

```
git clone -b release git@github.com:phwoolcon/deploy-automator.git ./
```

### 4. Config Deploy Automator

[](#4-config-deploy-automator)

```
vim app/config/production/app.php
```

```
