Comments (4)
Hi @grzegorz225!
That sounds weird, we're using it successfully across multiple production deployments (both using mix release
as well as Distillery).
Could you provide a bit more information/example code to reproduce?
from forma.
@frekw Here is an minimal example which showcases the problem:
https://github.com/gorbak25/forma-bug
The demo tries to decode a simple json encoded payload each second and prints it to stdout, there is a test which tests decoding data using forma.
The tests pass and the app works correctly in both dev and prod environments - iex -S mix
& MIX_ENV=prod iex -S mix
The app does not work as a compiled release:
- mix release
- _build/dev/rel/forma_demo/bin/forma_demo start
In the demo I'm getting the same error as in my other project.
I'm using Elixir 1.9.4 on OTP 22
from forma.
@grzegorz225 interesting, I haven't seen that behaviour with mix release
before.
Adding the following configuration keeps the typespec metadata around even when assembling a release:
def project do
[
app: :forma_demo,
version: "0.1.0",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
deps: deps(),
releases: [
forma_demo: [strip_beams: false]
]
]
end
from forma.
See https://hexdocs.pm/mix/Mix.Tasks.Release.html#module-options for more information.
from forma.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from forma.