Get application's current version in production

April 16, 2018|
1 min read
  • elixir

Originally posted by me on Hashrocket TIL

If you use Distillery to produce Elixir releases for production you may be in a situation where your application is deployed and running but you are not sure what version is loaded into memory.

To verify the version:

  1. SSH into your server
  2. navigate into the bin directory of your release (e.g. app_release/your_project/bin)
  3. run the remote console ./your_project remote_console
  4. Run the spec function on Application: Application.spec(:your_project, :vsn)

You will get back a string such as '0.0.1'.


© 2023, Dorian Karter