Skip to content

Commit

Permalink
build fix 14
Browse files Browse the repository at this point in the history
  • Loading branch information
greg@1m committed Mar 25, 2022
1 parent 17e8105 commit 4cd7d0d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
7 changes: 3 additions & 4 deletions platforms/electron/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,11 @@ const startTiroServer = (cb) => {
log(`server config loaded successfully: ${JSON.stringify(configServerObj)}`);
if (cb) cb(configServerObj);
} catch(e){
log(`ERROR! could not get the server config ${JSON.stringify(e)}`)
const msg = `ERROR! could not get the server config ${JSON.stringify(e)}`;
log(msg);
alert(msg);
}


}

}
}
});
Expand Down
11 changes: 7 additions & 4 deletions server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,15 @@ import { startSecuredStaticServer } from './managers/staticServer.manager';

fileLogClean();

const archi = process.arch

log(`===== TIRO SERVER STARTING ====== `)
log(`
isEnvDev: ${isEnvDev()}
port: ${backConfig.port}
https:${backConfig.https}
platform: ${getPlatform()}
architecture: ${archi}
`)


Expand All @@ -36,10 +39,10 @@ app.use('/', express.static(backConfig.frontendBuildFolder));
// RESSOURCES SERVER on /static
if (backConfig.dataFolder) {
startSecuredStaticServer({
expressApp: app,
url: '/static',
pathFolder: backConfig.dataFolder
});
expressApp: app,
url: '/static',
pathFolder: backConfig.dataFolder
});
}


Expand Down

0 comments on commit 4cd7d0d

Please sign in to comment.