I've started playing alittle with erlang, and find it most interesting.
My problem is this, I would like to set up a server to run a webservice. The service should be writen in erlang, and should be easily mutated, that Is I would like to be able to do hot codeswap alot, the code is writen and tested on another machine, it there a way to deploy code easily from one erlang noce to another, without having to wrap it up in files and transfer the files?
I think I remmember hearing something about being able to pass closures around inside the erlang VM, is this doable? or perhaps even updating threads on the server machine with the compiled code on the development machine?
I know this sounds like a risky way of doing things, and it is, but its what my mind has settled on.
if I understand correctly, you want to load a module from one node to another. In this case you can use the bif nl(Module)
which loads the module "Module" on all nodes. Or you can either use nc(Module)
Of course the nodes must share the same cookie and must be connected (see net_adm:ping(Node)
)