- version: 1.0
- Clone this repository;
- Copy the file
config.bash.dist
toconfig.bash
and set up the variables:cp inc/config.bash.dist inc/config.bash
_DEPLOY_APP_SERVER_DIR
- Path inside the server where the script will checkout your git branch or tag._DEPLOY_SERVER
- SSH server address._DEPLOY_REPO_REMOTE
- Remote repository configured in your git, origin is commonly used._DEPLOY_PROJECT_DIR
- Your local repository full path.
- You can run with a parameter to deploy a specific git tag or branch. Example:
./deploy.sh <branch tag>
; - Or just run
./deploy.sh
, the script will auto create a release tag like:release-DATE
), push it and checkout in your server; - If the tag already exists the script will increment a number at the end release tag, just like:
release-DATE.1
.