Deliver is a pure bash deployment tool with virtually no dependencies. It only cares about having enough info in the shell environment to do its job. Why add Ruby or Python wrappers on top of system commands when bash was built for this?
Capistrano was just infuriating when you added rvm and bundler into the mix, git-deploy is great for single server, but what if you're running a bunch of auto-scaled clusters (Ruby, node.js etc.)?
At [GoSquared] 1, the place where deliver started, each of us is free to use their own programming language. As long as the service exposes an API and has decent test coverage, anything goes. Yes, even PHP.
Delivering a nodejs service to multiple hosts:
![deliver nodejs service to multiple hosts] 2
Delivering deliver to [github:pages] 8 (very inception-esque):
![deliver deliver to github:pages] 7
Strategies is what sets this utility apart from everything else. By default, it comes with strategies for:
You can also add your own, project-specific strategies. [Read more about deliver strategies.] 6
$ git clone git://github.com/gerhard/deliver.git ~/.deliver
$ echo 'export PATH="$HOME/.deliver/bin:$PATH"' >> ~/.bash_profile
# if using zsh
$ echo 'export PATH="$HOME/.deliver/bin:$PATH"' >> ~/.zshrc
$ . ~/.bash_profile
# if using zsh
$ . ~/.zshrc
There are no generators or initializers, you will need to manually create a
.deliver/config
file in the app's root folder that you want to deliver.
This is a good example:
#!/usr/bin/env bash
APP="events"
SERVERS="ruby-1,ruby-2"
PORT="5000"
From the root of your project, run:
$ deliver check
![deliver check] 9
This will print the most important config settings and ensure that deliver has everything that it needs for a successful run.
Deliver will use the ruby strategy by default. If you want to use a different
one, specify it in your .deliver/config
file.
To see a list of available strategies:
$ deliver strategies
[Read more about deliver strategies] 6
To see all supported options and actions:
$ deliver -h|--help
(The MIT license)
Copyright (c) Gerhard Lazu
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.