fix: production environment .env file path
This commit is contained in:
parent
1b44a40903
commit
fb4cbfa331
20 changed files with 20 additions and 20 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
const path = require('path')
|
||||
require('dotenv').config({ path: path.resolve(__dirname, '../.env') })
|
||||
require('dotenv').config({ path: process.env.NODE_ENV === 'production' ? path.resolve('/etc', 'lamassu', '.env') : path.resolve(__dirname, '../.env') })
|
||||
const db = require('../lib/db')
|
||||
|
||||
const getCount = () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue