зеркало из https://github.com/mozilla/galaxy-api.git
18 строки
363 B
JavaScript
18 строки
363 B
JavaScript
var settings = require('./settings_local.js');
|
|
|
|
var db = require('./db');
|
|
var server = require('./server');
|
|
|
|
|
|
[
|
|
'game/detail',
|
|
'game/manifest',
|
|
'game/submit'
|
|
].forEach(function(view) {
|
|
require('./views/' + view)(server);
|
|
});
|
|
|
|
server.listen(process.env.PORT || 5000, function() {
|
|
console.log('%s listening at %s', server.name, server.url);
|
|
});
|