fix: production env file path

This commit is contained in:
Sérgio Salgado 2022-04-22 19:20:56 +01:00
parent f4d6b5e454
commit b2da82453a
19 changed files with 27 additions and 72 deletions

View file

@ -2,7 +2,7 @@
const fs = require('fs')
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') })
const MNEMONIC_PATH = process.env.MNEMONIC_PATH