Timoney, Daniel (dt5972) | 324ee36 | 2017-02-15 10:37:53 -0500 | [diff] [blame] | 1 | #!/usr/bin/env node |
| 2 | var debug = require('debug')('admportal'); |
| 3 | var app = require('../server/app'); |
| 4 | var properties = require(process.env.SDNC_CONFIG_DIR + '/admportal.json'); |
| 5 | var out_file = "/opt/openecomp/sdnc/admportal/logs/http_admportal.log"; |
| 6 | var error_file = "/opt/openecomp/sdnc/admportal/logs/error_http_admportal.log"; |
| 7 | var cwd = "/opt/openecomp/sdnc/admportal"; |
| 8 | |
| 9 | app.set('port', properties.nonSslPort || 8181 ); |
| 10 | |
| 11 | var server = app.listen(app.get('port'), function() { |
| 12 | console.log('Express server listening on port ' + server.address().port); |
| 13 | debug('Express server listening on port ' + server.address().port); |
| 14 | }); |