Skip to content

Commit

Permalink
env: Add NUXT_ROOT_DIR env to work with pm2
Browse files Browse the repository at this point in the history
  • Loading branch information
Atinux committed Sep 6, 2018
1 parent 14e608b commit 17275d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/common/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const esm = require('esm')(module, {
}
})

const getRootDir = argv => resolve(argv._[0] || '.')
const getRootDir = argv => resolve(process.env.NUXT_ROOT_DIR || argv._[0] || '.')
const getNuxtConfigFile = argv => resolve(getRootDir(argv), argv['config-file'])

exports.nuxtConfigFile = getNuxtConfigFile
Expand Down

0 comments on commit 17275d5

Please sign in to comment.