Skip to content

Instantly share code, notes, and snippets.

@sskylar
Created February 27, 2015 20:21
Show Gist options
  • Save sskylar/406c224ffed82da7bf77 to your computer and use it in GitHub Desktop.
Save sskylar/406c224ffed82da7bf77 to your computer and use it in GitHub Desktop.
Siteleaf config using ENV variables
# Intended for development purposes only, do not upload or use in production.
# See https://github.com/siteleaf/siteleaf-gem for documentation.
require 'rubygems'
require 'siteleaf'
Siteleaf.api_key = ENV['API_KEY']
Siteleaf.api_secret = ENV['API_SECRET']
run Siteleaf::Server.new(:site_id => ENV['SITE_ID'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment