Skip to content

Instantly share code, notes, and snippets.

@idoberko2
Created October 6, 2019 06:24
Show Gist options
  • Select an option

  • Save idoberko2/bdaae8fa350cc20638e39d21f02ca82f to your computer and use it in GitHub Desktop.

Select an option

Save idoberko2/bdaae8fa350cc20638e39d21f02ca82f to your computer and use it in GitHub Desktop.
Deployment script to Dokku
#!/bin/bash
eval "$(ssh-agent -s)";
chmod 600 .travis/dokku-deploy.key;
ssh-add .travis/dokku-deploy.key;
ssh-keyscan "$DOKKU_HOST" >> ~/.ssh/known_hosts;
git remote add deploy dokku@"$DOKKU_HOST":"$DOKKU_APP";
git config --global push.default simple;
git push deploy master;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment