Galaxy build number


#1

Is there a way to access the galaxy build number in my app?


#2

Just guessing, but I would assume that a Meteor app isn’t even aware of which environment it is actually running in.


#3

It’s listed in the console on Galaxy so it should be somewhere, not sure if they push it in a environment variable though:

2016-09-23 17:38:21+02:00Successfully built version XXXXXX.
2016-09-23 17:38:48+02:00Application process starting, version: XXXXX on apprunner (embedded)

@jamgold what’s your use case for this?


#4

I want to display the build version in my app


#5

If you think it may be an environment variable, try

console.log(process.env);

in your server code.


#6

The answer is process.env.GALAXY_APP_VERSION_ID