fix: production env file path
This commit is contained in:
parent
f4d6b5e454
commit
b2da82453a
19 changed files with 27 additions and 72 deletions
|
|
@ -4,7 +4,7 @@ const http = require('http')
|
|||
const https = require('https')
|
||||
const argv = require('minimist')(process.argv.slice(2))
|
||||
|
||||
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 { asyncLocalStorage, defaultStore } = require('./async-storage')
|
||||
const routes = require('./routes')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue