capslock-studio/node-deploy-server-php-pusher

Lightweight cross platform self-hosted deployment server solution client in PHP.

1.0.2 2016-11-20 04:37 UTC

This package is not auto-updated.

Last update: 2024-05-11 17:56:39 UTC


README

Build Status Coverage Status Code Climate Issue Count

Installation

composer global require capslock-studio/node-deploy-server-php-pusher dev-master

ln -s $HOME/.composer/vendor/bin/deploy-pusher /usr/local/bin/deploy-pusher

How to use

DEPLOY_HOST={DEFINE_YOUR_NODE_DEPLOY_SERVER} SECRET={DEFINE_YOUR_SECRET} DIST={REMOTE_SERVER_DEPLOY_PATH} deploy-pusher [PARAMETER_WITH_DOUBLE_DASH]

Windows user

set DEPLOY_HOST={DEFINE_YOUR_NODE_DEPLOY_SERVER}
set SECRET={DEFINE_YOUR_SECRET}
set DIST={REMOTE_SERVER_DEPLOY_PATH}

php .\deploy-pusher [PARAMETER_WITH_DOUBLE_DASH]

Shell Parameters

  • --tag - Specify the tag you want to deploy
  • --rollback - Rollback to the previous version
  • --config - Load parameter from JSON file
  • --command - Commands you will execute after deploy successfully.(multiple)
  • --ignore - Folders you want to keep.(multiple)

ENV

  • SECRET - Secret key to encrypt json payload.
  • DEPLOY_HOST - Server you want to deploy!

Supported CI platform

  • TravisCI
  • Jenkins
  • CircleCI

Other CI platform

You have to assign REPO and OWNER to your environment variable in other CI tool.