lyo5ha

lyo5ha

Hi! I’m trying to deploy Phoenix 1.4 app (elixir 1.7.4, erlang 21.1.1) to ubuntu 18.04 using this Digital Ocean tutorial with edeliver and distillery. I use asdf as version manager.

Locally releases builds just fine (by MIX_ENV="prod" mix release).

But on my Ubuntu server I got ** (Mix) The task "release" could not be found
I realize, that there is no rel/ folder on prod server in ~/app_build/ folder, so mix can’t find config.exs and can’t start release task.
What should I do with edeliver (or with anything) to convince him to put that folder to server?

$ mix edeliver build release          

BUILDING RELEASE OF MY_APP APP ON BUILD HOST

-----> Authorizing hosts
-----> Ensuring hosts are ready to accept git pushes
-----> Pushing new commits with git to: deploy@<my_domen.com>
-----> Resetting remote hosts to 5b0466a25cc4050a062942e2108db21fbe3a2434
-----> Cleaning generated files from last build
-----> Fetching / Updating dependencies
-----> Compiling sources
-----> Generating release
using mix to generate release
** (Mix) The task "release" could not be found

A remote command failed on:

  deploy@<my_domen.com>

Output of the command is shown above and the command executed
on that host is printed below for debugging purposes:

FAILED with exit status 1:

    [ -f ~/.profile ] && source ~/.profile
    set -e
    cd /home/deploy/app_build
    if [ "mix" = "rebar" ]; then
      echo "using rebar to generate release"
      ./rebar   -f generate
    elif [ "mix" = "relx" ]; then
      echo "using relx to generate release"
      ./relx release
    elif [ "mix" = "mix" ]; then
      echo "using mix to generate release"
      MIX_ENV="prod" LINK_SYS_CONFIG="" LINK_VM_ARGS="" APP="my_app" AUTO_VERSION="" BRANCH="master" SKIP_RELUP_MODIFICATIONS="" RELUP_MODIFICATION_MODULE="" USING_DISTILLERY="true" mix  release --verbose --env="prod" --name="my_app"
    fi

Here my files:

Showing Posts 1 to 4

sanswork

sanswork

Have you added the rel folder to your git repo and committed?

lyo5ha

lyo5ha OP

Yes, definitely. Everything including /rel/ folder is under git and committed.

sanswork

sanswork

If you check git logs does 5b0466a25cc4050a062942e2108db21fbe3a2434 have rel?

Also try deleting the folder on the server and doing it again. It doesn’t sound like your latest commit is being pushed if thats the case.

lyo5ha

lyo5ha OP

Hmm, you are right. It’s my master branch without any configs at all.
I use $ mix edeliver build release --branch=feature/deploy and build finished with success.

— All posts loaded —

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
kpanic
Hi everyone, I am toying with the idea of building a “match maker” for giving personal help to people that wants to start coding. I sta...
New
nseaSeb
Hello, I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
asweet-confluent
I recently noticed that Elixir’s Logger defaults its primary log level to :debug when no :logger, :level application configuration is pre...
New
apz
I’m new to elixir and just tried to install the elixirLS extension for VScode(ium) and it is throwing some errors that I would like help ...
New

Other Trending Topics Top

GenericJam
Edit: 2026 May 15 - This post is archived. Mob is alive!! Main docs: mob v0.7.11 — Documentation A bit of explanation for the slightly c...
New
JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews