mcode10

mcode10

Do I need Git in order to use edeliver?

I am trying to deploy a Phoenix application to a VPS using edeliver with a relx.config. However, I am not using Git. Instead I am using fossil (fossil-scm.org). In the README for edeliver (in the install section), it states that git is at least required on the build server, which I can get around by building on localhost, which is the same system/architecture as the VPS (Arch Linux, x86_64).

Does edeliver use Git to deploy the finished release to production?

If edeliver does require Git, what other options do I have? It seemed for automated deployment most other tools ultimately rely on edeliver or edeliver and Distillery and the Distillery repository on GitHub clearly says it is deprecated and most of the functionality is now a part of mix releases.

Could I simply create a mix release and copy and paste the release to production? I do not require hot code reloading or similar features.

Most Liked

LostKobrakai

LostKobrakai

Make sure you understand the requirements for being able to do so:

RudManusachi

RudManusachi

Hey, @mcode10 :wave: welcome to our community :slightly_smiling_face:

Could I simply create a mix release and copy and paste the release to production?

Yes, you definitely can. Once you build release with mix release (don’t forget to run it with MIX_ENV=prod env var) you’ll get the built release in ./_build/prod just deliver it somehow to your VPS and run there with _build/prod/rel/app_name/bin/app_name start

More about mix release — Mix v1.15.8

Last Post!

mcode10

mcode10

I have been trying to get mix releases working and I am struggling with Postgrex currently, although thank you to @Hermanverschooten for the blog post. It errors out with the complaint that ssl is not enabled on my postgresql server, so the postgrex process crashes continually.

I have tried all of the ways I know to configure it: Adding the ssl: false option to config/runtime.exs and config/prod.exs (in the $APP.Repo config) and by having the database_url option include the “?ssl=false” option as well.

Is there some configuration that I’m missing to tell Postgrex to ignore ssl status? I want to avoid complicating the setup further by adding the complexitites of managing a certificate for a purely localhost interaction.

Where Next?

Popular in Questions Top

electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
svb
Hi! Currently I want to submit a form by pressing the Enter key. However, since my input field is of type “textarea” this is just adds a...
New

Other popular topics Top

nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
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
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
saif
Hello everyone, Long time lurker first time poster here. I’ve recently begun working on Elixir full-time again! :raised_hands: It’s been...
New

We're in Beta

About us Mission Statement