Skip to content

Instantly share code, notes, and snippets.

@codysoyland
Created January 11, 2012 00:14
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codysoyland/1592102 to your computer and use it in GitHub Desktop.
Save codysoyland/1592102 to your computer and use it in GitHub Desktop.
fabric gateway script
#!/bin/sh
echo $* | ssh gateway "cat > /tmp/fab-runner; chmod +x /tmp/fab-runner"
ssh gateway -t screen bash -init-file /tmp/fab-runner
# Usage: gateway.sh fab production deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment