2023-04-21 15:49:53 +01:00

24 lines
692 B
JavaScript

#!/usr/bin/env node
// Modules
var debug = require('debug')('raneto');
// Here is where we load Raneto.
// When you are in your own project repository,
// Raneto should be installed via NPM and loaded as:
var raneto = require('./app/index.js');
// Then, we load our configuration file
// This can be done inline, with a JSON file,
// or with a Node.js module as we do below.
var config = require('/config/config.default.js');
// Finally, we initialize Raneto
// with our configuration object
var app = raneto(config);
// Load the HTTP Server
var server = app.listen(app.get('port'), app.get('host'), () => {
debug(`Express HTTP server listening on port ${server.address().port}`);
});