Skip to content

Instantly share code, notes, and snippets.

@kylemac
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kylemac/461b0a55a05f566ed33c to your computer and use it in GitHub Desktop.
Save kylemac/461b0a55a05f566ed33c to your computer and use it in GitHub Desktop.
how to configure charge in your app.coffee file
charge_config = require './config.json'
module.exports =
# the rest of your roots configuration stuff
# this reads your config.json and configures charge
server: charge_config
# alternately you could define your key/values inline
# server:
# clean_urls: true
# spa: true
# log: 'tiny'
# error_page: 'error.html'
{
"clean_urls": true,
"spa": true,
"error_page": "error.html",
"gzip": true,
"log": "tiny"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment