sapegin / shipit

Minimalistic SSH deployment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

multiple hosts?

yitang opened this issue · comments

Hi, I am building a cluster grid and I found shipit very useful. I wonder what's the best way to deploy to multiple hosts? Currently, I have to create multiple folders and each has .shiptit file, and I have to run shipit on each folder.

Yi

I haven’t tried it but something like this may work:

host=$SHIPIT_HOST
path='sites/example.com'

[deploy]
git checkout master
...

And then you call it like this:

SHIPIT_HOST=example.com shipit

That works nicely. Thank you.