Skip to content

Instantly share code, notes, and snippets.

@hanikesn
Created June 16, 2014 14:02
Show Gist options
  • Save hanikesn/3b36270e05900d786d88 to your computer and use it in GitHub Desktop.
Save hanikesn/3b36270e05900d786d88 to your computer and use it in GitHub Desktop.
Erlang Scripts
#!/usr/bin/env escript
%%! -sname enkidu_compile@localhost -pa deps/*/ebin apps/*/ebin debug verbose
main([_Module, _File]) ->
{ok, _Result} = rpc:call(enkidu@localhost, c ,c, [_File, [debug_info, fail_on_warning, {parse_transform, lager_transform}]]).
%rpc:call(enkidu@localhost, code ,purge, [list_to_atom(_Module)]),
%{module, _Result} = rpc:call(enkidu@localhost, code ,load_file, [list_to_atom(_Module)]).
#!/bin/bash
ERL_MAX_PORTS="10000"
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd ${DIR}
erl -sname "enkidu"@localhost +A 16 +K true +P 1000000 -pa deps/*/ebin apps/*/ebin -boot start_sasl -s lager -s ark_tracker_app -s ark_stats_app -s ark_control_app -config etc/app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment