Verified Commit 7eb8921d authored by Aral Balkan's avatar Aral Balkan
Browse files

Refactor: move FeatherJS config/ directory to server/config/.

Closes #23
parent de93411c
......@@ -6,7 +6,18 @@ const helmet = require('helmet')
let logger = require('winston')
const feathers = require('@feathersjs/feathers')
const path = require('path')
// Set the Node configuration directory to server/config instead of the default
// config/ as the configuration files are for the FeathersJS server, not for
// the Nuxt/Vue client. (We must do this before requring @feathersjs/configuration
// as that uses the node-config module that uses this environment variable. See
// for further
// information on this.)
process.env['NODE_CONFIG_DIR'] = path.join(__dirname, 'config/')
const configuration = require('@feathersjs/configuration')
const express = require('@feathersjs/express')
const primus = require('@feathersjs/primus')
......@@ -24,6 +24,6 @@ process.on('nuxt:build:done', (err) => {
const server = app.listen(port)
server.on('listening', () => {`Feathers application started on ${app.get('host')}:${port}`)
console.log(`🎈 Indie Site started on http://${app.get('host')}:${port}`)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment