mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 10:48:51 +00:00
5165f3e65e
Summary: Logger configuration (and all Thrift config in Erlang) now uses application:get_env/2 via thrift:config/2. Defaults can be provided on the erl command line with ``-config <filename>''. It may also be helpful to cascade config files; {key, value} pairs provided in subsequent files will override previous ones -- e.g. in our applications we use ``-config base.config -config cpiro.config''. server.config was added as an example and server.sh was updated to invoke erl with ``-config server.config''. Reviewed By: eletuchy Test Plan: the tutorial server now outputs a reasonable set of messages Revert Plan: ok git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665426 13f79535-47bb-0310-9956-ffa450edef68
19 lines
480 B
Bash
Executable File
19 lines
480 B
Bash
Executable File
#!/bin/sh
|
|
|
|
ERL_THRIFT=../../lib/erl
|
|
|
|
if ! [ -d ${ERL_THRIFT}/ebin ]; then
|
|
echo "Please build the Thrift library by running \`make' in ${ERL_THRIFT}"
|
|
exit 1
|
|
fi
|
|
|
|
if ! [ -d ../gen-erl ]; then
|
|
echo "Please run thrift first to generate ../gen-erl/"
|
|
exit 1
|
|
fi
|
|
|
|
|
|
erlc -I ${ERL_THRIFT}/include -I ../gen-erl -o ../gen-erl ../gen-erl/*.erl &&
|
|
erlc -I ${ERL_THRIFT}/include -I ../gen-erl *.erl &&
|
|
erl +K true -pa ${ERL_THRIFT}/ebin -pa ../gen-erl -config server.config
|