cat: deps/exrm/mix.exs: No such file or directory on edeliver build host

During building my elixir app with edeliver (`mix edeliver build release`) have faced this error:

cat: deps/exrm/mix.exs: No such file or directory

Failed to detect exrm version.

Please set EXRM_VERSION_MAJOR, EXRM_VERSION_MINOR and EXRM_VERSION_PATCH
in the console or the config file.

Detected '' as major,
                 '' as minor
         and '' as patch version.

Please make sure you have `exrm` in your mix.exs deps:

  defp deps do
    [{:exrm, "~> 1.0.3"}]
  end

IMPORTANT! After you add this to the mix.exs run `mix deps.get`, commit the changes and run again `mix edeliver build release`

-sh: 12: Syntax error: “&” unexpected error when you build Elixir app with edeliver

This error looks like this:

-sh: 12: Syntax error: "&" unexpected
ssh -o ConnectTimeout=3 [email protected] 
set -e
    if [ ! -d /home/bots/apps/builds ]
    then
      mkdir -p /home/bots/apps/builds
      cd /home/bots/apps/builds
      git init &> /dev/null
      git config receive.denyCurrentBranch ignore
    else
      cd /home/bots/apps/builds
      git config receive.denyCurrentBranch ignore
    fi
   &> /dev/null$

This simple dummy error means that you have different shell on your build host.
I created a user “bot” on my DigitalOcean VPS and user’s shell was `sh` by default.
So I logged in to the build host and changed shell like `chsh /bin/bash`.
OR you can edit `/etc/passwd` file and change/append `/bin/bash` in the line where your user located.

bash: line 10: mix: command not found when building Elixir app with edeliver

Another dummy error which could be fixed in a minute.

$ mix edeliver build release                  

BUILDING RELEASE OF AWESOMEBOT APP ON BUILD HOST

-----> Authorizing hosts
-----> Ensuring hosts are ready to accept git pushes
-----> Pushing new commits with git to: [email protected]


-----> Resetting remote hosts to 568e7c43e372ed947e45e3dfe2a641f5dc771bf4
-----> Cleaning generated files from last build
-----> Fetching / Updating dependencies
using mix to fetch and update deps
bash: line 10: mix: command not found

FAILED 127:

    [ -f ~/.profile ] && source ~/.profile
    set -e
    cd /home/bots/apps/builds
    if [ "mix" = "rebar" ]; then
      echo "using rebar to fetch and update deps"
      ./rebar  update-deps get-deps
    elif [ "mix" = "mix" ]; then
      echo "using mix to fetch and update deps"
      if [ ! -f ~/.mix/rebar ]; then
        APP="awesomebot" MIX_ENV="prod" mix local.rebar
      else
        echo "rebar for mix was built already"
      fi
      APP="awesomebot" MIX_ENV="prod" mix local.hex --force
      APP="awesomebot" MIX_ENV="prod" mix deps.get
    fi

Solution is simple -you need to install `mix`, so follow the instructions here: http://elixir-lang.org/install.html#unix-and-unix-like

Add Erlang Solutions repo: wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && sudo dpkg -i erlang-solutions_1.0_all.deb
Run: sudo apt-get update
Install the Erlang/OTP platform and all of its applications: sudo apt-get install esl-erlang
Install Elixir: sudo apt-get install elixir