Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Deploy method and platform to stats #6649

Merged
merged 4 commits into from
Apr 10, 2017
Merged

Conversation

geekgonecrazy
Copy link
Contributor

@RocketChat/core

@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-6649 April 10, 2017 18:16 Inactive
@@ -59,6 +59,11 @@ RocketChat.statistics.get = function _getStatistics() {
uptime: process.uptime()
};

statistics.deploy = {
method: process.env.DEPLOY_METHOD || 'tar',
platform: process.env.DEPLOY_PLATFORM || 'selfinstall'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we check for valid methods and platforms instead of assuming that any value is valid?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

problem with that is we have to continue to update that list, any time we or someone else adds a new one. ☹️

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

true.. just realized we can ignore them on the other end if we want 😉

@engelgabriel engelgabriel merged commit 557f617 into develop Apr 10, 2017
@engelgabriel engelgabriel deleted the new/deployment_stats branch April 10, 2017 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants