An open API service indexing awesome lists of open source software.

https://github.com/docspring/convox-git-push

"git push" deploys for convox
https://github.com/docspring/convox-git-push

Last synced: 9 months ago
JSON representation

"git push" deploys for convox

Awesome Lists containing this project

README

          

# "git push" deploys for convox

### Introduction

[convox/rack](https://github.com/convox/rack) is an open-source PaaS,
"built entirely on AWS cloud services for maximum privacy and minimum upkeep".

You can use the convox CLI to deploy new code by running `convox deploy`.
The deploy command creates a tarball of all files in the project directory, excluding files
listed in `.dockerignore`.

[setup.sh](setup.sh) clones your project into `.convox-build`, sets up a [git post-receive hook](https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks) that runs `convox deploy`, and sets up a `convox` git remote pointing to `.convox-build`.
You can run `git push convox` to deploy new code.

### Setup (Script)

```bash
cd
curl -s https://raw.githubusercontent.com/FormAPI/convox-git-push/master/setup.sh | bash
```

### Setup (Manual)

```bash
cd

touch .git/info/exclude
grep -q .convox-build .git/info/exclude || echo ".convox-build" >> .git/info/exclude

git clone . ./.convox-build
git remote add convox ./.convox-build
(cd ./.convox-build && git config --local receive.denyCurrentBranch updateInstead)

if [ -d .convox ]; then
ln -fs ../.convox ./.convox-build/.convox
fi

cat > ./.convox-build/.git/hooks/post-receive <
curl -s https://raw.githubusercontent.com/FormAPI/convox-git-push/master/uninstall.sh | bash
```