fix: production env file path
This commit is contained in:
parent
f4d6b5e454
commit
b2da82453a
19 changed files with 27 additions and 72 deletions
|
|
@ -9,7 +9,7 @@ const mnemonicHelpers = require('../lib/mnemonic-helpers')
|
|||
const setEnvVariable = require('../tools/set-env-var')
|
||||
|
||||
const path = require('path')
|
||||
require('dotenv').config({ path: path.resolve(__dirname, '../.env') })
|
||||
require('dotenv').config({ path: process.env.NODE_ENV === 'production' ? path.resolve(os.homedir(), '.lamassu', '.env') : path.resolve(__dirname, '../.env') })
|
||||
|
||||
if (!process.env.MNEMONIC_PATH && process.env.SEED_PATH) {
|
||||
const seed = fs.readFileSync(process.env.SEED_PATH, 'utf8').trim()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue