Skip to content

Instantly share code, notes, and snippets.

# mongo_template.rb
# remove unneeded defaults
run "rm public/index.html"
run "rm public/images/rails.png"
run "rm public/javascripts/controls.js"
run "rm public/javascripts/dragdrop.js"
run "rm public/javascripts/effects.js"
run "rm public/javascripts/prototype.js"
@yannski
yannski / private_gem_on_scalingo.md
Last active October 16, 2015 15:11 — forked from masonforest/gist:4048732
Installing a Gem on Scalingo from a Private GitHub Repo

Installing a Gem on Scalingo from a Private GitHub Repo

Sometimes you want to use a gem on Scalingo that is in a private repository on GitHub.

Using git over http you can authenticate to GitHub using basic authentication. However, we don't want to embed usernames and passwords in Gemfiles. Instead, we can use authentication tokens.

  1. Get an OAuth Token from GitHub

First you will need to get an OAuth Token from GitHub using your own username and "note"

//Add this to fetch the SCALINGO_MYSQL_URL
$url = parse_url(getenv("SCALINGO_MYSQL_URL"));
$db['default'] = array(
'dsn' => '',
'hostname' => $url["host"],
'username' => $url["user"],
'password' => $url["pass"],
'database' => substr($url["path"], 1),
'dbdriver' => 'mysqli',