Get application's current version in production
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:
- SSH into your server
-
navigate into the bin directory of your release (e.g.
app_release/your_project/bin
) -
run the remote console
./your_project remote_console
-
Run the
spec
function onApplication
:Application.spec(:your_project, :vsn)
You will get back a string such as '0.0.1'.
Tweet