O'Reilly logo

Elixir Cookbook by Paulo A Pereira

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Deploying applications and updating a running system

In this recipe, we will be using exrm to assist us in the process of deploying applications and updating running systems without taking them down.

This is another key feature provided by Elixir: availability!

Getting ready

To get started, we need the application that we used in the previous recipe. You may find it under the release_me folder in the code directory.

How to do it…

To deploy an application and update it while running, we will follow these steps:

  1. Create a new location to deploy your application. In this case, we will be using the tmp/elixir_app directory:
    mkdir -p tmp/elixir_app
    
  2. Copy the release generated in the previous recipe to the new location:
    > cp rel/release_me/release_me-0.0.1.tar.gz ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required