https://github.com/pforret/gandi_deploy
bash script to work easily with gandi.net paas git deployment (bash)
https://github.com/pforret/gandi_deploy
bash deployment developer-tools gandi git hosting
Last synced: 12 months ago
JSON representation
bash script to work easily with gandi.net paas git deployment (bash)
- Host: GitHub
- URL: https://github.com/pforret/gandi_deploy
- Owner: pforret
- License: apache-2.0
- Created: 2020-03-28T12:53:31.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-02-06T13:10:09.000Z (about 5 years ago)
- Last Synced: 2025-03-24T13:36:10.079Z (about 1 year ago)
- Topics: bash, deployment, developer-tools, gandi, git, hosting
- Language: Shell
- Homepage:
- Size: 603 KB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README



# gandi_deploy

* script to work easily with gandi.net paas git deployment (bash)
## Installation
### prerequisites
* make sure [Gandi CLI](https://cli.gandi.net/) is installed correctly
# test with
gandi account info
### easy install
* With [basher](https://github.com/basherpm/basher) package manager
basher install pforret/gandi-deploy
### manual install
* clone this repository somewhere on your machine
`git clone https://github.com/pforret/gandi_deploy.git`
* from any of your Gandi git-managed project, add a symbolic link to gdeploy.sh
`ln -s /path/to/gandi_deploy/gdeploy.sh .`
### in any 'deploy with git' www.example.com folder
* run gdeploy.sh init
`./gdeploy.sh init`
* to preview your site on your local server
`./gdeploy.sh serve` (on port 8000)
`./gdeploy.sh rnd` (on a random port between 8000 and 8099)
* to publish your site, run this to commit, push and deploy
`./gdeploy.sh all`
## Usage
```
# gdeploy 1.3.0
# author: Peter Forret
# website: https://github.com/pforret/gandi_deploy
> usage: gdeploy [init|commit|push|deploy|all|login|serve|domains] (target)
init : initialize the Gandi Paas settings
all [remote]: commit, push and deploy this website
commit : git commit all local changes
push [rem] : git push to Gandi git server
pull [rem] : git pull from Gandi git server
deploy [rem]: ssh deploy from git to live website
login : do ssh login to the Gandi host for this website
serve : run local devl website on localhost:8000
rnd : run local devl website on random port localhost:8000-8099
consoles : get 'gandi paas console ...' command for every domain
domains : get all hosted Gandi sites
```