chore: build fixes

This commit is contained in:
Taranto 2022-05-04 22:24:52 +01:00
parent e4cf1d6297
commit ebfd3f433a
16 changed files with 16 additions and 7 deletions

View file

@ -1,10 +1,7 @@
#!/usr/bin/env node
const _ = require('lodash/fp')
const path = require('path')
require('dotenv').config({ path: path.resolve(__dirname, '../.env') })
const _ = require('lodash/fp')
const path = require('path')
const os = require('os')
require('dotenv').config({ path: process.env.NODE_ENV === 'production' ? path.resolve(os.homedir(), '.lamassu', '.env') : path.resolve(__dirname, '../.env') })
const db = require('../lib/db')