You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 10, 2023. It is now read-only.
console.error('Cannot access directory %s. Maybe it does not exist?. Please specify a valid data directory by using the environment variable DATA_DIR.', process.env.DATA_DIR);
process.exit(1);
}
var dataDirStats = fs.statSync(process.env.DATA_DIR);
if(!dataDirStats.isDirectory()) {
console.error('%s is not a directory. Please specify a valid data directory by using the environment variable DATA_DIR.', process.env.DATA_DIR);
process.exit(1);
}
var app = express();
var server = http.createServer(app);
require('./config/express')(app);
// Routing
app.use(require('./routes'));
// Start server
server.listen(process.env.PORT, function() {
console.info('Server started on port %d serving directory %s! Waiting for requests...', process.env.PORT, process.env.DATA_DIR);