https://github.com/williankeller/ssh-deploy
A simple tool to automate the deploy with in a SSH server using GIT.
https://github.com/williankeller/ssh-deploy
bash-script deploy shell-script ssh ssh-deploy
Last synced: about 2 months ago
JSON representation
A simple tool to automate the deploy with in a SSH server using GIT.
- Host: GitHub
- URL: https://github.com/williankeller/ssh-deploy
- Owner: williankeller
- Created: 2017-07-26T15:20:30.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-10-16T14:31:03.000Z (over 5 years ago)
- Last Synced: 2025-03-21T13:53:41.733Z (about 1 year ago)
- Topics: bash-script, deploy, shell-script, ssh, ssh-deploy
- Language: Shell
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SSH Deploy #
### A simple tool to automate the deploy with in a SSH server using GIT. ###
* version: 1.0
### How do set up? ###
* Clone this repository;
* Copy the file `config.bash.dist` to `config.bash` and set up the variables:
* `cp inc/config.bash.dist inc/config.bash`
### Variables description ###
* `_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.
### How do I use? ###
* You can run with a parameter to deploy a specific git tag or branch. Example: `./deploy.sh `;
* 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`.