Skip to content

Instantly share code, notes, and snippets.

View doodlemoonch's full-sized avatar

Matt Tortolani doodlemoonch

View GitHub Profile

After migrating from heroku to dokku, we had to also chance codeship so we deploy to dokku. I followed the following steps to successfully deploy to dokku.

  1. Save the public key of the codeship project. It is found in Project Settings > General Settings.
  2. Copy the public key to a file /tmp/codeship_projectname.pub.
  3. Make sure when pasting, all the contents are in a single line and not multiple lines.
  4. Add the public key to dokku using the following command in console. Reference.
cat /tmp/codeship_projectname.pub | ssh root@yourdokkuinstance "sudo sshcommand acl-add dokku [description]"
@doodlemoonch
doodlemoonch / README.md
Last active December 16, 2015 05:59 — forked from assimovt/README.md

Setup

Add the following gems to your Gemfile:

gem 'activeresource'
gem 'newrelic_api'

Update your bundle:

@doodlemoonch
doodlemoonch / gist:973081
Created May 15, 2011 11:47 — forked from tlrobinson/gist:961765
Slightly less ghetto JavaScript console bookmarklet for MobileSafari
javascript:(function(){var l,r="";while(l=prompt(r)){try{r=String(eval(l));}catch(e){r="Error: "+e}}})();