dry / elixir-cowboy-example Goto Github PK
View Code? Open in Web Editor NEWAn example Elixir application using Cowboy and Lager
An example Elixir application using Cowboy and Lager
Looks like this may have been written pre-Hex. Currently, cowboy is a few versions newer and lager is not in the Hex database. In elixir 0.14, cowboy doesn't compile with this version of the code.
I attempted to update the dependencies (in mix.exs) to current versions pulled from github, which worked, both deps compiled, as follows:
defp deps do
[ { :cowboy, github: "extend/cowboy", tag: "0.10.0" },
{ :lager, github: "basho/lager", tag: '2.0.3' } ]
end
However, once compiled, the example code then fails to run, with the following message:
[22:04:11 elixir-cowboy-example (master)]$ mix compile
==> lager (compile)
Compiled src/lager_app.erl
Compiled src/lager.erl
Compiled src/lager_file_backend.erl
== Compilation error on file lib/lager.ex ==
** (CompileError) lib/lager.ex:4: undefined function lc/2
(elixir) src/elixir.erl:195: :elixir.quoted_to_erl/3
(stdlib) erl_eval.erl:657: :erl_eval.do_apply/6
(elixir) src/elixir.erl:163: :elixir.erl_eval/2
As yet i'm too much of an elixir noob (started just 4 days ago) to debug that on my own. If I do manage to fix it, however, I'll issue an pull request. In the meantime, any advice is appreciated!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.