azimlord
Deploy to Digital Ocean using Distillery & edeliver
Hi guys,
Im getting some issue deploying to DO
When I try to run this
mix edeliver build release
It shows this error
BUILDING RELEASE OF PROJECT APP ON BUILD HOST
-----> Authorizing hosts
-----> Ensuring hosts are ready to accept git pushes
-----> Pushing new commits with git to: user@ipaddress
-----> Resetting remote hosts to ad76a770fcda0ef2dd622ae3a344db3e3d617f70
-----> Cleaning generated files from last build
-----> Fetching / Updating dependencies
using mix to fetch and update deps
** (CompileError) config/prod.secret.exs:1: undefined function e/1
(elixir) lib/code.ex:232: Code.eval_string/3
(mix) lib/mix/config.ex:187: anonymous fn/2 in Mix.Config.__import__!/2
(elixir) lib/enum.ex:1940: Enum."-reduce/3-lists^foldl/2-0-"/3
Here’s my .deliver/config
APP="project"
BUILD_HOST="ipaddress"
BUILD_USER="user"
BUILD_AT="/home/user/app_build"
PRODUCTION_HOSTS="ipaddress"
PRODUCTION_USER="user"
DELIVER_TO="/home/user/app_release"
pre_erlang_get_and_update_deps() {
local _prod_secret_path="/home/user/app_config/prod.secret.exs"
if [ "$TARGET_MIX_ENV" = "prod" ]; then
__sync_remote "
ln -sfn '$_prod_secret_path' '$BUILD_AT/config/prod.secret.exs'
"
fi
}
I already check prod.secret.exs is available in the server
Im following this tutorial How To Automate Elixir-Phoenix Deployment with Distillery and edeliver on Ubuntu 16.04 | DigitalOcean
Thanks guys
Marked As Solved
sanswork
Also Liked
mcostasilva
Hi azimlord,
According to the error message there is an error in your prod.secret.exs, on the line 1 apparently.
1
azimlord
Last Post!
azimlord
Popular in Questions
I have an umbrella app.
Some of the apps inside depend on other apps in the umbrella, unsurprisingly.
I’m writing a test for one of the...
New
Lets say I have map like this fetching from my database
%{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
New
I have VueJS GUIs with the project generated using Webpack.
I have Elixir modules that will need to be used by the VueJS GUIs.
I forese...
New
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
Good day to you all.
I have been struggling to get a query involving like and ilike to work.
Can anyone assist me on this, please?
pro...
New
Hello everybody,
usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New
Other popular topics
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
New
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!)
This post collects co...
New
Seen any cool LiveView demos, sample apps or examples? Please post them here! :003:
New
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #hex
- #security










