fix: production environment .env file path
This commit is contained in:
parent
1b44a40903
commit
fb4cbfa331
20 changed files with 20 additions and 20 deletions
|
|
@ -5,7 +5,7 @@ const hkdf = require('futoin-hkdf')
|
|||
const os = require('os')
|
||||
|
||||
const path = require('path')
|
||||
require('dotenv').config({ path: process.env.NODE_ENV === 'production' ? path.resolve(os.homedir(), '.lamassu', '.env') : path.resolve(__dirname, '../.env') })
|
||||
require('dotenv').config({ path: process.env.NODE_ENV === 'production' ? path.resolve('/etc', 'lamassu', '.env') : path.resolve(__dirname, '../.env') })
|
||||
|
||||
const mnemonicHelpers = require('../lib/mnemonic-helpers')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue