azimlord

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

sanswork

You’re missing “us” at the start of that.

e Mix.Config

on the first line.

Also Liked

mcostasilva

mcostasilva

Hi azimlord,

According to the error message there is an error in your prod.secret.exs, on the line 1 apparently.

azimlord

azimlord

FML :sweat:

Thanks. My mistake

Last Post!

azimlord

azimlord

FML :sweat:

Thanks. My mistake

Where Next?

Popular in Questions Top

New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
New
Emily
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
greenz1
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
jerry
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
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
jason.o
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 Top

JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1144 54921 245
New
joeerl
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
greenz1
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
axelson
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...
239 49084 226
New
AstonJ
Seen any cool LiveView demos, sample apps or examples? Please post them here! :003:
New
msaraiva
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
564 44139 214
New

We're in Beta

About us Mission Statement