zatvobor / couch_gears Goto Github PK
View Code? Open in Web Editor NEWSexy convenience for customizing your Couch DB nodes as you need
License: Other
Sexy convenience for customizing your Couch DB nodes as you need
License: Other
In case when db record (couch_db.hrl) points to db:header record (couch_db.hrl)
defrecord Db, Record.extract(:db, from: "couch_db.hrl")
== Compilation error on file lib/couch_gears/mochiweb/http.ex ==
** (ErlangError) erlang error: {:undefined_record,:db_header}
:erl_eval.expr/2
and:
defrecord DbHeader, Record.extract(:db_header, from: "couch_db.hrl")
defrecord Db, Record.extract(:db, from: "couch_db.hrl")
stil reproduced
It's true for production env
However, for development env each incoming request reload all chain
==> couch_gears (compile)
ERROR: One or more .beam files exist that are not listed in couch_gears.app:
* couch_gears_httpd_handler
ERROR: compile failed while processing /Volumes/branch320/opt/data-hogs/couch_gears: rebar_abort
As an expected result you should receive an 500 error with a human readable message
When I compile some module, and then do some changes, I get last work code without my changes.
or couch_normalization could be available as a pluggable dependency
Dynamo.Supervisor.start_child MyDynamo, Worker, []
In order to deploy/compile/test a whole couch_gears
stack (with applications) both on production and development
elixir issue, elixir-lang/elixir#667
plan:
Mix.Server
tasks execution history, such as tasks
, tasks_history
, clear_tasks_history
;mix recursive
task that applies a task list which should be applied for all projects under apps_path
;
In case when you need to redeploy gears. You should has ability to restart gracefully each gear application.
I think that it will be useful to have both /_gears/restart
and /_gears/app/restart
handlers
Particular gear app should be loaded through couch's daemon as a part of gears initialization process.
For the beginning gears could manage only CouchGearApplication
And dependencies paths should be managed via gear app. (mix?)
Note: As a further scope for environments support
Depends on https://github.com/datahogs/gunclip
Injected Message Pack into Couch DB:
https://github.com/timanglade/couchdb/commit/b601286dae04bdc2488a0d9bf028c58e6feb3449
In case when:
defrecord Db, Record.extract(:db, from: "couch_db.hrl")
Has reference to the another #db_header{}
record
Application gear should be loaded through couch's daemon
Note: As a further scope for environments support
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.