Last active
August 29, 2015 14:01
-
-
Save shrop/5f8491512d337897506a to your computer and use it in GitHub Desktop.
Start Meteor APM Only on One Specific Instance of a Meteor Application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>'); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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