Skip to content

Instantly share code, notes, and snippets.

@shrop
Last active August 29, 2015 14:01
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 shrop/5f8491512d337897506a to your computer and use it in GitHub Desktop.
Save shrop/5f8491512d337897506a to your computer and use it in GitHub Desktop.
Start Meteor APM Only on One Specific Instance of a Meteor Application
Meteor.startup(function() {
// Start APM only on our test server.
var rootUrl = Meteor.absoluteUrl();
if (rootUrl === "https://<rootUrl>/" || rootUrl === "http://<rootUrl>/") {
Apm.connect('<AppId>', '<AppSecret>');
}
});
#!/bin/sh
ROOT_URL="http://<rootUrl>/" mrt --port 3000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment