mirror https://github.com/synrc/mad

Yuri Artemev c73954f662 remove dbg macro from mad_static 10 лет назад
.rebar c73954f662 remove dbg macro from mad_static 10 лет назад
doc 877239de55 apps ordering 10 лет назад
priv 4dc31a61db relx release handling 10 лет назад
src c73954f662 remove dbg macro from mad_static 10 лет назад
test fe1e953680 make mad regular OTP application back 11 лет назад
.gitignore 856c7887f3 Get the escript to work 11 лет назад
.travis.yml a391e95692 mad with no deps 11 лет назад
LICENSE 8f923c22c9 create command, proper copyright, dharma license 10 лет назад
Makefile cfbc9e8927 build mad with mad 10 лет назад
README.md 1e531ffbe0 mad images 10 лет назад
mad 4c9866d46a add static files compiler 10 лет назад
rebar.config f12ebf7159 mad with ports compilation 10 лет назад

README.md

MAD

A simple rebar-compatible dependency manager.

Goals

It shall:

  • be compatible with rebar configuration.
  • be as small and fast as possible.

Build

$ make

And put 'mad' to PATH.

Unikernel Bundle

Bundle is a gzipped archive of erlang beams of all dependecies along with directory structure of OTP-applications with priv directories. This allows you to pack all site inside single portable escript package able to run under Windows, Linux and Mac. Releases includes all current directory exept sources both code and data with all dependencies.

$ mad app "sample"
$ cd sample
$ mad deps compile plan bundle "web_app"
$ ./web_app

Building OTP Release

Releases are bundles made by release_handler module of sasl applications. It has it own fat bootstripts along with erlang runtime included. This allows you to distribute you applications with copy deploy without Erlang prerequisite.

$ mad app sample
$ cd sample
$ mad dep com pla release
$ _rel/bin/sample console

Credits

  • Maxim Sokhatsky
  • Sina Samavati
  • Vladimir Kirillov

OM A HUM