kalkatfyodor

kalkatfyodor

I would like to buy Macbook Air M1. However, it is an ARM computer and not an intel computer like my Linode server which is intel architecture.

Will I have a problem when creating a final release via

MIX_ENV=prod mix release

?

Also, does Elixir and Phoenix run OK on the M1 Mac? Does any of you use M1 Mac, how is your experience?

Showing Posts 1 to 10

stefanluptak

stefanluptak

Hi there!

I have a MacBook Air M1 and it is a fantastic machine. I encountered zero problems working with Elixir.

However, your release will not work. See mix release — Mix v1.12.3 for more info.

You can use Docker to do a cross-compilation. I build my releases with GitHub Actions that provide Ubuntu runners as it’s more a convenient way for me.

Hope it helps a bit.

kalkatfyodor

kalkatfyodor OP

Hmm, that’s super bad. ;(

LostKobrakai

LostKobrakai

Releases were always bound to the architecture they’re built on. Even if you used mac os on an intel mac you couldn’t run releases built on it on an ubuntu host.

kalkatfyodor

kalkatfyodor OP

And what about uploading the code to the Linode server and make a build there? How slow will the compilation process be? A minute or two? Will it slow down the server that has running website already in Phoenix? Or I can use blue green deployment with two servers if that will be a problem.

Isn’t there some cross-compilation tool by the Elixir team to mitigate this M1 Mac issue? Have they mentioned that they are working on it?

kalkatfyodor

kalkatfyodor OP

I don’t want to use Docker. I hate it. Also I don’t host stuff on Github or gitlab, I version stuff only locally for security and legal issues. Any idea what can I do in such case? Upload the project files to the Linode server that has Erlang VM and Elixir installed and make a release build there?

hauleth

hauleth

No.

You do not need Docker, you can use any other setup that will:

  • Provide compiled ERTS for the target platform (unless you compile your release without ERTS, but then you need to ensure that on the target host there is ERTS in exactly the same version you compiled your project with, also this will not allow you to do hot upgrades)
  • If you have NIFs: provide compiler that will build NIFs for target platform (you can try Zig for example to do so)
LostKobrakai

LostKobrakai

You could use any other virtualization tooling as well.

derek-zhou

derek-zhou

Depends on what you want to compile. I compile the Erlang, Elixir, Emacs and my applications on my 1GB 1vCPU VPS regularly. It is doable.

tmjoen

tmjoen

Just to be clear, you can just build your application in Docker, extract it from the build container as a compressed archive, upload it to your host and unpack. You don’t have to run it as a Docker container on your host

dimitarvp

dimitarvp

Yeah, exactly this, this is what we do at $job.

Where Next? Top

Trending in Questions Top

RSP87
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
kpanic
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
nseaSeb
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
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
velrest
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
asweet-confluent
I recently noticed that Elixir’s Logger defaults its primary log level to :debug when no :logger, :level application configuration is pre...
New
ryanwinchester
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 Top

JesseHerrick
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
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
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
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
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

Latest on Elixir Forum

Elixir Forum

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews