better config / install from cli / allow_registration

This commit is contained in:
lesion
2019-06-21 23:52:18 +02:00
parent 4c3c7ee324
commit cf81a73f2f
38 changed files with 530 additions and 272 deletions

View File

@@ -7,10 +7,11 @@ const { Nuxt, Builder } = require('nuxt')
const firstRun = require('./firstrun')
// Import and Set Nuxt.js options
const nuxt_config = require('../nuxt.config.js')
const config = require('./config')
const config = require('config')
const app = express()
async function start() {
nuxt_config.server = config.server
// Init Nuxt.js
const nuxt = new Nuxt(nuxt_config)
@@ -31,7 +32,7 @@ async function start() {
app.use(nuxt.render)
// Listen the server
const server = app.listen(config.server)
const server = app.listen(nuxt_config.server)
// close connections/port/unix socket
function shutdown() {
@@ -54,4 +55,4 @@ async function start() {
})
}
firstRun.then(start)
start()