Skip to content

Instantly share code, notes, and snippets.

@anovikov1984
Created November 9, 2015 17:16
Show Gist options
  • Save anovikov1984/26171049f575643a7829 to your computer and use it in GitHub Desktop.
Save anovikov1984/26171049f575643a7829 to your computer and use it in GitHub Desktop.
Appending PubNub keys while generating template
<script>
var pubnub = PUBNUB.init({
publish_key: '<?php echo getenv("PUBNUB_PUBLISH_KEY"); ?>',
subscribe_key: '<?php echo getenv("PUBNUB_SUBSCRIBE_KEY"); ?>'
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment