Questions tagged [distillery]

Elixir release manager

Pure-Elixir, dependency-free implementation of release packaging functionality for the Erlang VM.

51 questions
2
votes
0 answers

module not available in release

I have a small Elixir application that uses feeder_ex to parse XML. In development everything works well but when I build my release with distillery I start getting an unavailable xmerl module error. I solved it by adding the xmerl application to…
Awea
  • 3,163
  • 8
  • 40
  • 59
2
votes
1 answer

Elixir: application quits immediately, or doesn't receive input when running distillery package. Why does it work that way, and how to work around it?

I have an Elixir application that is structured the following way: Application --> Supervisor --> Worker The Application Module is fairly simple, it has a use Application and a def start(_type, _args) MyApp.Supervisor.start_link() end The…
sisisisi
  • 481
  • 7
  • 17
2
votes
1 answer

edeliver with distillery: how to setup `start` command to use systemctl

I am deploying the Elixir project to remote using edeliver backed up by distillery. I also successfully created the systemd.service file that starts, stops, restarts etc the release from the command line. But the mix edeliver start production…
Aleksei Matiushkin
  • 119,336
  • 10
  • 100
  • 160
2
votes
1 answer

Do Ecto migration from a release of an elixir app

I've made a release of my elixir application. It starts to run a supervised task using DB when the app is lunched. When the DB is not migrated, the task keep error and app is terminated. I read…
mayTree
  • 727
  • 2
  • 9
  • 22
2
votes
1 answer

Configuration for a distillery release

I walk through the https://hexdocs.pm/distillery/getting-started.html documentation but can't get a basic Phoenix application up an running. Here's what I do: mix phoenix.new test_app --no-ecto cd test_app Than I update the mix.exs file to include…
wintermeyer
  • 8,178
  • 8
  • 39
  • 85
1
vote
1 answer

Why edeliver generates incorrect sys.config on restart

My goal is to add a new application environment variable to an Elixir/Phoenix app, which is released with the distillery and deployed with the edeliver. Because I've added a new value to the prod.secret.exs file, I'm expecting the new env variable…
vsushkov
  • 2,445
  • 1
  • 19
  • 28
1
vote
0 answers

Distillery post start hook fail due to genserver not being started

I have a Genserver which is needed to run before I can seed data. Adding a post start hook fails on distillery release with an error that my genserver is not running. (exit) exited in: GenServer.call(MyApp.NumberHelper, {:number,…
Sigu Magwa
  • 546
  • 5
  • 18
1
vote
1 answer

Distillery failed with message "Multiply defined module: 'Elixir.Telemetry'"

When I tried to upgrade a running Phoenix application using Distillery, the build failed with these messages: Generated teamgenik app ==> Assembling release.. ==> Building release my_app:0.10.7 using environment prod ==> Generated .appup for…
Tsutomu
  • 4,848
  • 1
  • 46
  • 68
1
vote
3 answers

How to deploy elixir app from Windows dev machine to Ubuntu server

I've developed an app on Windows machine and I need to deploy it to Ubuntu 18.04 server. The tools I'd like to use are distillery and edeliver. So can I just build the release with distillery on my Windows machine or should I build it on the…
AndreyKo
  • 1,421
  • 2
  • 11
  • 25
1
vote
0 answers

Edeliver Phoenix release fails

I'm trying to release a phoenix application with edeliver following the steps explained here. I have browsed the internet and found some people having the same problem, but no matter what I do, I keep on getting the same error below. I can login…
1
vote
1 answer

Starting Phoenix project built with distillery: Error in process ~p with exit value:~n~p~n

I am building a production docker image, but when I run it I get: 2018-10-06 14:14:20.950098 Error in process ~p with exit value:~n~p~n <0.670.0> …
raarts
  • 2,711
  • 4
  • 25
  • 45
1
vote
1 answer

Distillery build not connecting with postgresql elixir phoenix

I switched from exrm to distillery in build release for my phoenix project. Everything is working fine. when I do iex -S mix phx.server Application runs and everything gets connected with DB. but the build release not connecting with the database.…
Junaid Farooq
  • 2,484
  • 5
  • 26
  • 63
1
vote
2 answers

Running ecto migration via release from distillery

I have an elixir application with 3 umbrella projects. I am creating its binary (release) via distillery. Running this command creates .tar.gz file in _build/prod/rel/se/releases/0.1.0: MIX_ENV=prod mix release --env=qa And I am able to extract…
Meraj Rasool
  • 651
  • 2
  • 12
  • 23
1
vote
1 answer

How to set environment variables in Phoenix with Distillery library?

Follow this guide to use Distillery to release a elixir/phoenix project: https://blog.polyscribe.io/a-complete-guide-to-deploying-elixir-phoenix-applications-on-kubernetes-part-1-setting-up-d88b35b64dcd At the set config/prod.exs step, the author…
online
  • 4,919
  • 10
  • 32
  • 47
1
vote
3 answers

Build upgrade release with edeliver and distillery

Versions:(both build and production systems are same) Elixir: 1.4.0 OS: Ubuntu 14.04 LTS Distillery config: use Mix.Releases.Config, default_release: :default, default_environment: :prod environment :dev do set dev_mode: true set…