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
- Host: GitHub
- URL: https://github.com/docspring/convox-git-push
- Owner: DocSpring
- Created: 2018-04-05T11:38:28.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-13T15:28:03.000Z (about 8 years ago)
- Last Synced: 2025-02-24T17:18:23.519Z (over 1 year ago)
- Language: Shell
- Homepage: https://convox.com
- Size: 6.84 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```