Skip to content

Instantly share code, notes, and snippets.

@abstractcoder
Created January 14, 2015 20:53
Show Gist options
  • Save abstractcoder/2ec8db1ad108e2f687e7 to your computer and use it in GitHub Desktop.
Save abstractcoder/2ec8db1ad108e2f687e7 to your computer and use it in GitHub Desktop.
Shell script for executing remote Dokku commands using Heroku like syntax (e.g. dokku run rake db:migrate, dokku logs -t). Replace example.com with your hostname, and www with your Dokku app name.
#!/bin/bash
ssh -t dokku@example.com $1 www ${*:2}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment