Updated script

This commit is contained in:
Shahan Nedadahandeh 2022-06-07 02:42:14 -04:00
parent 1f41aab543
commit efe1e26b69
2 changed files with 3 additions and 1 deletions

View File

@ -13,7 +13,7 @@ app.get('/cscclassprofilestaging', async (req, res) => {
await call(`kubectl expose deployment ${name}`);
await call(`kubectl create ingress ${name} --rule='${name}-snedadah.k8s.csclub.cloud/*=${name}:80'`);
res.send('Hello World!')
res.send('Finished redeploy!')
})
async function call(cmd){

2
run.sh Normal file
View File

@ -0,0 +1,2 @@
npm install
npx forever start csccp.js