mgamini / elixilorem Goto Github PK
View Code? Open in Web Editor NEWLorem Ipsum generator for Elixir
License: MIT License
Lorem Ipsum generator for Elixir
License: MIT License
Fresh install in Elixir (1.15.5)
error: undefined variable "package"
/home/bjorn/r/shopex/deps/elixilorem/mix.exs:9: Elixilorem.Mixfile.project/0
warning: function package/0 is unused
/home/bjorn/r/shopex/deps/elixilorem/mix.exs:22: Elixilorem.Mixfile (module)
Error while loading project :elixilorem at /home/bjorn/r/shopex/deps/elixilorem
** (CompileError) deps/elixilorem/mix.exs: cannot compile module Elixilorem.Mixfile (errors have been logged)
Request: GET /
2017-09-29T01:06:42.778729+00:00 app[web.1]: ** (exit) an exception was raised:
2017-09-29T01:06:42.778730+00:00 app[web.1]: ** (FunctionClauseError) no function clause matching in Phoenix.HTML.safe_to_string/1
2017-09-29T01:06:42.778736+00:00 app[web.1]: (phoenix_html) lib/phoenix_html.ex:160: Phoenix.HTML.safe_to_string(%File.Error{action: "read file", path: "/tmp/build_c6d0b11a453c8192716e24686f3c18b6/_build/prod/lib/elixilorem/priv/ipsums/lorem_ipsum.txt", reason: :enoent})
Since Heroku compiles the app in a different directory than the one the app will live under, using a module constant creates an invalid reference to the path of the lorem ipsum files.
Here's where the app actually lives after compile:
Perhaps a quick fix is to change this line to be a function instead?
Relavant links:
https://elixir-lang.org/getting-started/module-attributes.html#as-constants
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.