Skip to content

Instantly share code, notes, and snippets.

@brweber2
Created April 27, 2016 12:18
Show Gist options
  • Save brweber2/f49330dffb49476dd4bd30d253b86fce to your computer and use it in GitHub Desktop.
Save brweber2/f49330dffb49476dd4bd30d253b86fce to your computer and use it in GitHub Desktop.

Generate a new mix project.

mix new myproj

Create a release for the project.

cd myproj

Add the exrm dependency

vi mix.exs

  defp deps do
    [ 
      {:exrm, "~> 1.0"},
    ]
  end
mix deps.get
mix compile

Install it and run it.

MIX_ENV=prod mix release
scp rel/myproj/releases/0.0.1/myproj.tar.gz user@hostname:~/directory
ssh user@hostname
mkdir app
cp myproj.tar.gz app
cd app
tar -xvf myproj.tar.gz
bin/myproj console
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment