Improve format
This commit is contained in:
parent
768f492466
commit
838d8af981
@ -1,4 +1,4 @@
|
||||
const BrowserWindow = require('electron')
|
||||
const { BrowserWindow, app } = require('electron')
|
||||
const fs = require('fs')
|
||||
const path = require('path')
|
||||
const { Blob } = require('buffer')
|
||||
@ -8,8 +8,7 @@ const energy_plus = 'https://nextgenerations-cities.encs.concordia.ca/api/v1.4/w
|
||||
|
||||
exports.run = async (application, param, tmp_path) => {
|
||||
console.log(`Executing ${application}`)
|
||||
env_path = path.resolve(`${__dirname}/../../../environments/workflow_launcher/.env`)
|
||||
dotenv.config({ path: env_path })
|
||||
dotenv.config({ path: path.resolve(`${app.getAppPath()}/environments/workflow_launcher/.env`) })
|
||||
const application_uuid = process.env.APPLICATION
|
||||
const username = process.env.APPLICATION_USERNAME
|
||||
const password = process.env.APPLICATION_PASSWORD
|
||||
|
@ -19,7 +19,7 @@
|
||||
<form id="form">
|
||||
<div class="form-element">
|
||||
<select name="application" id="application">
|
||||
<option value="citylayers" selected>Montreal retrofit scenario (City-Layers)</option>
|
||||
<option value="montreal_citylayers" selected>Montreal retrofit scenario (City-Layers)</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-element">
|
||||
|
@ -1,4 +1,4 @@
|
||||
const BrowserWindow = require('electron')
|
||||
const { BrowserWindow, app } = require('electron')
|
||||
const path = require('path')
|
||||
const dotenv = require('dotenv')
|
||||
const session_start = 'https://nextgenerations-cities.encs.concordia.ca/api/v1.4/session/start'
|
||||
@ -7,8 +7,7 @@ const retrofit_results = 'https://nextgenerations-cities.encs.concordia.ca/api/v
|
||||
exports.run = async (application, param, tmp_path) => {
|
||||
buildings = param['buildings']
|
||||
console.log(`Executing idf generation for ${application}`)
|
||||
env_path = path.resolve(`${__dirname}/../../../environments/${application}/.env`)
|
||||
dotenv.config({ path: env_path })
|
||||
dotenv.config({ path: path.resolve(`${app.getAppPath()}/environments/${application}/.env`) })
|
||||
const application_uuid = process.env.APPLICATION
|
||||
const username = process.env.APPLICATION_USERNAME
|
||||
const password = process.env.APPLICATION_PASSWORD
|
||||
|
@ -1,4 +1,4 @@
|
||||
const BrowserWindow = require('electron')
|
||||
const { BrowserWindow, app } = require('electron')
|
||||
const fs = require('fs')
|
||||
const path = require('path')
|
||||
const { Blob } = require('buffer')
|
||||
@ -9,8 +9,7 @@ const insel_meb = 'https://nextgenerations-cities.encs.concordia.ca/api/v1.4/wor
|
||||
|
||||
exports.run = async (application, param, tmp_path) => {
|
||||
console.log(`Executing ${application}`)
|
||||
env_path = path.resolve(`${__dirname}/../../../environments/workflow_launcher/.env`)
|
||||
dotenv.config({ path: env_path })
|
||||
dotenv.config({ path: path.resolve(`${app.getAppPath()}/environments/workflow_launcher/.env`) })
|
||||
const application_uuid = process.env.APPLICATION
|
||||
const username = process.env.APPLICATION_USERNAME
|
||||
const password = process.env.APPLICATION_PASSWORD
|
||||
|
@ -1,4 +1,4 @@
|
||||
const { BrowserWindow } = require('electron')
|
||||
const { BrowserWindow, app } = require('electron')
|
||||
const path = require('path')
|
||||
const dotenv = require('dotenv')
|
||||
const session_start = 'https://nextgenerations-cities.encs.concordia.ca/api/v1.4/session/start'
|
||||
@ -6,9 +6,8 @@ const retrofit_results = 'https://nextgenerations-cities.encs.concordia.ca/api/v
|
||||
|
||||
exports.run = async (application, param, tmp_path) => {
|
||||
buildings = param['buildings']
|
||||
console.log(`Executing ${application}`)
|
||||
env_path = path.resolve(`${__dirname}/../../../environments/${application}/.env`)
|
||||
dotenv.config({ path: env_path })
|
||||
console.log(`Executing ${application} `)
|
||||
dotenv.config({ path: path.resolve(`${app.getAppPath()}/environments/${application}/.env`) })
|
||||
const application_uuid = process.env.APPLICATION
|
||||
const username = process.env.APPLICATION_USERNAME
|
||||
const password = process.env.APPLICATION_PASSWORD
|
||||
|
Loading…
Reference in New Issue
Block a user