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
RudManusachi
Hey, @mcode10
welcome to our community ![]()
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
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.
Popular in Questions
Other popular topics
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
- #security
- #hex









