Coder Social home page Coder Social logo

elixilorem's People

Contributors

lowks avatar mgamini avatar yulolimum avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

elixilorem's Issues

error: undefined variable "package"

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)

Exception on Heroku due to incorrect ipsum path. ENOENT.

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.