vjdhama / ambience Goto Github PK
View Code? Open in Web Editor NEWApp configuration for crystal applications.
License: MIT License
App configuration for crystal applications.
License: MIT License
Won't fix until Spec2 is fixed. More details. waterlink/spec2.cr#20
Build is failing due to an issue in mocks lib.
Currently build is failing due to mocks dependency, which doesn't work well with crystal version >= 0.16.0
.
Hi. It will be more informative if you show some config samples in README (and show that config should be YAML)
Hello! First of all thank you for this shard. I have spotted a strange behaviour.
This is my configuration file:
ENABLED_ENV_PATH: "asd"
DISABLED_ENV_PATH: "qwe"
This is the code loading it:
Ambience.application(path_to_file, "development")
Ambience.load
This code triggers a compile exception with this stracktrace:
[4582919] *CallStack::unwind:Array(Pointer(Void)) +87
[4582810] *CallStack#initialize<CallStack>:Array(Pointer(Void)) +10
[4582762] *CallStack::new:CallStack +42
[4745529] *KeyError +41
[4745465] *KeyError::new<String>:KeyError +105
[4782014] *Hash(YAML::Type, YAML::Type) +270
[4781734] *Hash(YAML::Type, YAML::Type) +6
[4758057] *Ambience::Application#environment_configuration<Ambience::Application>:(Hash(String, String) | Hash(YAML::Type, YAML::Type) | Nil) +1161
[4756863] *Ambience::Application#load<Ambience::Application>:(Hash(String, String) | Hash(YAML::Type, YAML::Type) | Nil) +47
[4756619] *Ambience::load:(Hash(String, String) | Hash(YAML::Type, YAML::Type) | Nil) +107
[4728188] *Env::Manager::load_envs:(Hash(String, String) | Hash(YAML::Type, YAML::Type) | Nil) +204
[4527122] ???
[4537545] main +41
[233773866693] __libc_start_main +245
[4487785] ???
[0] ???
I can fix this specifing the development
in the configuration file like this:
ENABLED_ENV_PATH: "asd"
DISABLED_ENV_PATH: "qwe"
development:
Why is it needed? Am I missing something?
By the way, it happens also with the kemal example in this repo.
Thank you.
Build is failing due to crystal installation failure on Travis. Seems to be some authentication error. crystal-lang/crystal#2012
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.