jpcaruana
Hello,
I am a bit confused with the release process with mix.
I want to deploy my release on a server with erlang installed, but when I run MIX_ENV=prod mix release I don’t know what files I should take, how to send it to my server. I love that it comes with all batteries included (start, stop, daemon etc..) but it seems to also package erlang with it. I don’t need to package erlang with it.
I build on a Mac system but I want to run it on a Linux one.
My dream is a zip/tgz file that I can unzip on my server, run a start command and just works with my installed erlang unix binary, since beam files do not depend on the undelying system.
Any idea ?
Trending in Questions
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
Hello,
I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
Hi everyone,
I am toying with the idea of building a “match maker” for giving personal help to people that wants to start coding.
I sta...
New
Documentation
While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
So my question is quite simple and i have found no conclusive answer on forum, google or AI.
Should we use :erlang.float for Integer to ...
New
I recently noticed that Elixir’s Logger defaults its primary log level to :debug when no :logger, :level application configuration is pre...
New
apply_graft/2 doesn’t rewrite an add_many sub-workflow’s deps on an add step. Grafted jobs cancel with “upstream job was deleted”
Version...
New
Other Trending Topics
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Hi everyone!
The first release candidate for the Expert language server project is now available!
We’ve published a press release detai...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixirconf-us
- #ai
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #elixirconf-eu
- #metaprogramming
- #hex











Showing Posts 1 to 6- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
jpcaruana
I also have elixir on my server but running beam files should not need elixir to be present
pmangalakader
Have you checked out this one:
:include_erts- a boolean, string, or anonymous function of arity zero. If a boolean, it indicates whether the Erlang Runtime System (ERTS), which includes the Erlang VM, should be included in the release. The default istrue, which is also the recommended value. If a string, it represents the path to an existing ERTS installation. If an anonymous function of arity zero, it’s a function that returns any of the above (boolean or string).The official documentation is here
jpcaruana
Thanks for your input.
I tried to point it to an ERTS installation with the target unix path (different from mine on mac) and I got an error:
Okay, I’ll let the magic of the PATH happen : use
falseinstead.When I run start on my server (I scp-ed the whole prod dir to my server) I have a crash dump:
I am more and more puzzled
jpcaruana
sadly the documentation says I have to compile on my target:
pmangalakader
Glad, you found it!
Oliver
Is there an actual solution for this?
I have built elixir for Intel/Linux on an Intel/Linux machine, and I try to run it with the flag set to false in release on another slightly different machine, but I get those loading errors as well.
Is there any way around this?