edeliver

Mix task “release” not found error

◇◆丶佛笑我妖孽 提交于 2019-12-13 22:21:59
问题 I was setting up an Ubuntu 16.04 server for my Elixir/Phoenix application with edeliver when edeliver failed with the error message ** (Mix) The task "release" could not be found along with a exit code of 1. If I go to my build server, git pull my app and run MIX_ENV=prod mix release or just mix release after getting dependencies, I get the same error. However, the same application works without any problem locally. My erlang version is erts-9.0 and elixir version is 1.5.5 on both the server

Read files in Phoenix in production mode

本秂侑毒 提交于 2019-12-11 06:03:46
问题 I've Phoenix app (I created it with --api flag) that has some additional data required to process requests that I store in priv/data/filters.csv . So it works fine in dev mode, I can read this file like: File.stream!("priv/data/filters.csv") , but once app is delivered using mix edeliver update this file is not accessible anymore. I can see this folder in build directory, but after app is delivered there is no such folder priv . I'm not sure why it's not copied to deliver folder. What I'm

Edeliver - Impossible to access on port 4000 after successful deploy

大城市里の小女人 提交于 2019-12-11 04:58:50
问题 I'm trying to deploy a simple phoenix app with edeliver . Yesterday after many struggle it worked. Anyway, today I worked on it a bit and tried to release a new version: mix edeliver build release --branch=production # looks fine mix edeliver deploy release to production # looks fine mix edeliver restart production # looks fine If I run ps aux on my server I can see: root 29773 0.0 0.0 7620 292 ? S 08:58 0:00 /var/www/elixirhunt.prod/elixirhunt/erts-8.0/bin/epmd -daemon root 3179 0.0 0.0 4328