move running node setup to httpinterface

This commit is contained in:
Brenden Harrell committed 2021-10-01 08:27:54 -05:00
1 parent f3bc0cdda8
commit 978c6be82c
1 file changed
+6
+6
View File
@@ -864,6 +864,8 @@ exports.newHttpInterface = function newHttpInterface() {
await doGit()
if (error === undefined) {
// Run node setup to prepare instance for branch change
await runNodeSetup()
SA.projects.foundations.utilities.httpResponses.respondWithContent(JSON.stringify(global.DEFAULT_OK_RESPONSE), httpResponse)
} else {
let docs = {
@@ -896,6 +898,10 @@ exports.newHttpInterface = function newHttpInterface() {
}
}
async function runNodeSetup () {
console.log( "lets run node setup" )
}
} catch (err) {
console.log('[ERROR] httpInterface -> App -> Update -> Method call produced an error.')
console.log('[ERROR] httpInterface -> App -> Update -> err.stack = ' + err.stack)