elixir-mix Questions
1
Solved
On mix.exs you can declare dependencies like:
def deps do
[{:plug, "~> 1.0"}]
end
Why does it need to have "~>" instead of simply the version on the second part of the tuple.
I have seen th...
Notate asked 20/11, 2017 at 14:24
1
Solved
I have some problem while working on Elixir.
This is my mix.exs...
defmodule FlockTest.Mixfile do
use Mix.Project
def project do
[app: :flock_test,
version: "0.1.0",
elixir: "~> 1.4",
bu...
Intellectuality asked 12/11, 2017 at 8:56
2
Solved
When including external repositories in your Phoenix Framework project, it is possible to pass a Github option:
{:example, "~> 0.9.9", github: "somewhere/example"}
Is there an option to incl...
Immensity asked 28/8, 2015 at 21:20
2
Solved
I am creating an elixir project to search for patterns in files.
I want to store those patterns a config files to allow for easy changes in the app.
My first idea is storing those files as exs file...
Moniquemonism asked 27/5, 2014 at 19:12
1
Is there a command-line invocation I can used in conjunction with mix that will output all test names without running the tests?
Humane asked 28/9, 2016 at 16:9
2
Solved
In my Elixir/Phoenix app, when I run
mix test
I get output like:
$ mix test
....
Finished in 0.09 seconds
4 tests, 0 failures
with dots for each test that succeeded.
How do I output the na...
Tehee asked 27/12, 2016 at 18:13
2
i'm quite new to elixir and phoenix (and ubuntu) and have been battling to get myself up and running with web development.
upon creating a new phoenix application using
mix phoenix.new webapp
i...
Thursday asked 15/12, 2016 at 13:56
3
Solved
I am having some issues with mix, and MIX_ENV=prod with mix phoenix.server, where it fails on starting. Running all latest (Elixir 1.0.5, Phoenix 0.14.0) except Erlang (17.x, 17.3 I think) on Linod...
Saxena asked 30/6, 2015 at 19:24
4
Solved
I want to display data from my DB through Ecto in a custom mix task. How can I get the Ecto repo in my task (or start it)?
I tried something like this but it didn't work:
defmodule Mix.Tasks.User...
Girand asked 6/7, 2016 at 13:36
2
I wish to be able to run the ExUnit tests multiple times from within a running process, such as iex.
To do this I have code that looks somewhat like this:
def test do
# Unload test files
["test...
Airsickness asked 28/4, 2016 at 22:13
3
Solved
I'm currently learning Elixir by going through the OTP and mix tutorial on the elixir-lang website, and I'm having trouble finding out how to recompile and reload the project from within the shell....
Bughouse asked 8/4, 2016 at 1:40
1
Solved
I have an Elixir umbrella project. Each apps in this project can be compiled into executable file using mix escript.build.
I am trying to run this command from the root of umbrella project and go...
Gymnastics asked 14/6, 2016 at 2:42
0
After adding "timex" dependency I am facing this issue here is the error
===> Command bare not found
** (Mix) Could not compile dependency :idna, "/usr/bin/rebar3 bare compile --paths "phoenix/_...
Astrogeology asked 25/4, 2016 at 11:7
1
Solved
I'm following this tutorial: http://elixir-lang.org/getting-started/mix-otp/agent.html
So in my Elixir project I have a module lib/kv/bucket.exs, and a test for it test/kv/bucket_test.exs.
When I...
Lasala asked 13/3, 2016 at 15:25
1
Solved
Following the advice in this question regarding how to load iex with the dependencies of the current project I was able to work with phoenix framework dependencies in a pretty productive manner. Ho...
Perorate asked 29/12, 2015 at 4:3
1
I just want run IEx to require this package, I do not want create a mix project and into the deps.
For example, gem install bundle
How do I do this?
Unlookedfor asked 27/10, 2015 at 2:4
1
Solved
I have an elixir (mix) application running on heroku
I'm having issues attaching a remote iex shell to this application
The application is launched via this command :
web: MIX_ENV=prod elixir -...
Suspicious asked 7/9, 2015 at 21:35
2
Solved
I searched for package management on Erlang and Elixir and got some pointers to rebar rebar3 mix hex and relx etc. Can you help clarify the relationships among them? Where to use what? Is package j...
Extravehicular asked 3/9, 2015 at 19:55
1
Solved
An Elixir library I'm writing has two custom mix tasks, one intended to be used by users who have made my library a dependency of their project, one intended to be used only within my project.
The...
Tarrah asked 23/8, 2015 at 16:26
1
Solved
I have a task Thing in lib/mix/tasks/thing.exs
The code is:
defmodule Mix.Tasks.Thing do
use Mix.Task
def run(_) do
IO.puts "hello world"
end
end
When I run mix thing or mix Thing I get T...
Wig asked 19/8, 2015 at 19:49
1
Solved
Is there a way to install a dependency for an Elixir project directly through the command line using mix or mix hex?
I am aware of the option for searching the hex registry via
$ mix hex.search h...
Reparable asked 12/8, 2015 at 3:36
2
Solved
I'm writing tests of some Elixir code that interacts with SSH. In my tests, I'd like to start an SSH server that I can run my code against. I'd prefer to store this code in it's own file in the tes...
Buoy asked 4/6, 2015 at 19:26
1
I have an elixir application, an application server, that would benefit from start up parameters. This application uses an ecto repository, so I can store an app server's configuration there, but I...
Facet asked 7/3, 2015 at 5:21
2
Solved
I have a mix project with as simple as possible a Supervisor and GenServer. When I call from iex:
EchoCmd.Supervisor.start_link([:Hello])
GenServer.call(:echoserver, :echo)
GenServer.call(:echoser...
Recent asked 17/11, 2014 at 0:47
2
Solved
I want to run tests of my Phoenix app on Travis-CI.
Log excerpt:
$ MIX_ENV=test mix do deps.get, compile, test
Could not find hex, which is needed to build dependency :phoenix
Shall I install h...
Ware asked 18/9, 2014 at 11:23
© 2022 - 2024 — McMap. All rights reserved.