How to know version of code from Nakama

Hi,

I have any question. how to know server api version of nakama. I need to know version of code.


Nakama Console
or Do you have rpc or api for check version.

Hey @b-thanapat can you share more about what you would like to do as a result of the server version?

Hi, our team want to know server that still running. what is version of code. for check this version has bug or issue is it ? and our team want to know. they playing. what is version ? such as commit id from git.

Do you understand ?
Sorry for my english is not well. and I will try to practice more.

The best approach is to pass the server version as an environment variable, e.g.:

nakama --runtime.env "key=value"

Then it’s possible to access through the environment object in whatever server framework you are using.

1 Like

This is good choice. but assume Tester want to know this. How to they will check environment ? absolutely It is not RPC because they not should see httpkey of server. Do you think so ?

I don’t understand why displaying the server version in your app would mean a QA person would be able to see the httpkey of the server.

ok, back to your answer

Then it’s possible to access through the environment object in whatever server framework you are using.

Please tell me. How to they able see server version in my app. such as RPC right ? or another way ?

you can add your function that read environment variable and return value as function call result

1 Like