fix: production environment .env file path
This commit is contained in:
parent
1b44a40903
commit
fb4cbfa331
20 changed files with 20 additions and 20 deletions
|
|
@ -57,7 +57,7 @@ function updateOptionBasepath (result, optionName) {
|
|||
async function run () {
|
||||
// load current opts
|
||||
const options = load().opts
|
||||
const shouldMigrate = !fs.existsSync(process.env.NODE_ENV === 'production' ? path.resolve(os.homedir(), '.lamassu', '.env') : path.resolve(__dirname, '../.env'))
|
||||
const shouldMigrate = !fs.existsSync(process.env.NODE_ENV === 'production' ? path.resolve('/etc', 'lamassu', '.env') : path.resolve(__dirname, '../.env'))
|
||||
|
||||
// write the resulting .env
|
||||
if (shouldMigrate) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue