Skip to content

FinalBuild-Studio/node-deploy-server-php-pusher

Repository files navigation

node-deploy-server-php-pusher

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages