pebblecode / pebblecode.github.io

Jekyll powered pebblecode.com site
5 stars 5 forks source link

set a different api key for local development. #27

Closed export-mike closed 8 years ago

export-mike commented 9 years ago

Hi!

I've added a switch in the head.html to ensure we only set the live api key when published to github.io, to prevent any events caused in development are not stored in the segment.io dashboard. (homepage project). We now have a new project (homepage-local-development) and a different write key.

The jekyll.environment is set to true by github pages as seen here: http://mikeljames.github.io/ see changes: https://github.com/mikeljames/mikeljames.github.io/commit/d73f6b13a1e758b851728d623e2382ed7b530937

I used a personal github pages to test this out.