Commit Graph

18 Commits

Author SHA1 Message Date
Raul Ochoa
bd6c1e7164 Adds support to append logs to file with log4js. It listens to HUP signal to re-open the log file. In case the specified log filename is not writeable the server will not start. 2014-06-04 19:46:13 +02:00
Sandro Santilli
7100da2200 Set the NODE_ENV environment variable from app.js 2014-03-14 10:48:33 +01:00
Sandro Santilli
4013e84b15 Allow passing environment configuration name via NODE_ENV to app.js
Also print environment configuration name on app start
2014-03-13 13:54:10 +01:00
Sandro Santilli
a1adabdeb8 Include version in startup log 2014-03-13 13:50:53 +01:00
Sandro Santilli
65f31fd7c1 Add optional support for rollbar
Closes #150
Logs messages of severity ERROR or higher
2014-03-13 12:09:39 +01:00
Sandro Santilli
1f3aca837b Use log4js for logging
Closes #136
2014-03-13 11:52:40 +01:00
Sandro Santilli
6c47537f47 Honour the 'node_socket_timeout' configuration directive
Closes #128
Includes testcase, which required enhancing assert.response to
handle errors.
Changes app controller to a function that only reads configuration
when executed (rather than when only require'd).
2014-01-31 10:58:19 +01:00
Sandro Santilli
1c9179eeec Allow 'staging' as an env name for non-clustered run 2013-05-29 17:09:20 +02:00
Sandro Santilli
650756852a Use a default base_url when not specified in config file
Also report the base_url at startup
2013-05-24 14:45:10 +02:00
Sandro Santilli
133add8741 Allow using "test" as and environment name 2013-03-14 09:16:06 +01:00
Sandro Santilli
7fe09935cd Restrict listening host to configured `node_host` 2012-10-09 18:41:23 +02:00
Simon Tokumine
eba7eb4e28 quick tidy 2011-10-07 17:28:07 +01:00
Simon Tokumine
d9bdb1f1dc trim startup things 2011-08-23 14:58:06 +01:00
Simon Tokumine
fefa051450 added true oauth to application. got rid of bogus 2011-08-17 17:27:45 +01:00
Simon Tokumine
80ecdc565c oauth 2011-06-20 15:39:12 +02:00
Fernando Blat
21277ff9d2 Introduced a new parameter db_port to change it in a easy way
Some space and linebreaks cleaning
2011-06-13 12:31:50 +02:00
Simon Tokumine
bcd56de458 first draft, tidied, unit tests, modules, refactor, environments, see TODO for next steps" 2011-06-13 04:23:02 +01:00
Fernando Blat
159f72fe3d First version of the API server with some TODOs to solve 2011-06-09 18:34:02 +02:00