Crowdhailer

Crowdhailer

Creator of Raxx

Is there a way to pull archives from hex.pm

raxx_kit is a generator for web-applications, using Ace and Raxx.


At the moment instructions for using raxx_kit include pulling the archive from github.

$ mix archive.install https://github.com/CrowdHailer/raxx_kit/raw/master/raxx_kit.ez

This works perfectly well but it has a few, minor, downsides such as a long url and the fact the project is not discoverable on hex.pm.

I was wondering if there was anyway to pull an archive from hex. It seams like it should be easy enough to implement.

For example mix.exs could specify the path to an archive within the project.

defmodule RaxxKit.MixProject do
  use Mix.Project

  def project do
    [
      app: :raxx_kit,
      archive: "./raxx_kit.ez"
      # etc
    ]
  end
end

And then mix archive.install raxx_kit could just look for the project on hex.

Thoughts, is this possible some other way or is there a good reason this would be a bad idea?

Most Liked

ericmj

ericmj

Elixir Core Team

I think it should be changed to address this.

Definitely. If you could configure --include-dot-files in the project config it would work out of the box.

ericmj

ericmj

Elixir Core Team

I think archive.install should take the same options that archive.build does or possibly that it should be possible to configure --include-dot-files in the project config so that the flag is not needed.

Where Next?

Popular in Questions Top

RisingFromAshes
I’ve read in another post that it may be possible with a router helper - but I couldn’t find an appropriate one, and tbh, I’m still just ...
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
Lily
In templates/appointment/index.html.eex: <%= for appointment <- @appointments do %> <tr> <td><%= appoi...
New
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
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

Other popular topics Top

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
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
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
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New
AstonJ
Posting this to see if we can make things easier for people to get into Neovim. If you use Neovim and have a favourite distro please let ...
New

We're in Beta

About us Mission Statement