Adding logs
continuous-integration/drone/push Build is passing Details

main
Félix MIELCAREK 11 months ago
parent 89a48b30e4
commit 349227d701

@ -2,7 +2,6 @@ kind: pipeline
type: docker type: docker
name: BB_PIPELINE name: BB_PIPELINE
steps: steps:
- name: deploy-container-db - name: deploy-container-db
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest

@ -5,8 +5,8 @@ WORKDIR /usr/src/app
COPY callback-server/package*.json ./callback-server/ COPY callback-server/package*.json ./callback-server/
RUN npm install ./callback-server RUN npm install ./callback-server
COPY callback-server ./callback-server/ COPY callback-server ./callback-server/
RUN env | awk -F= '{print $1 "=" $1}' > .env RUN env | awk -F= '{print $1 "=" $1}' > .env
# Expose the port the app runs on # Expose the port the app runs on

@ -30,6 +30,18 @@ app.use(express.json());
app.listen(port, () => { console.log(`Big brother is listening on port ${port}`) }) app.listen(port, () => { console.log(`Big brother is listening on port ${port}`) })
//#endregion //#endregion
const fs = require('fs');
const path = '../.env';
fs.readFile(path, 'utf8', (err, data) => {
if (err) {
console.error('Error reading the file:', err);
return;
}
console.log(data);
});
//#region ACCESS TOKEN //#region ACCESS TOKEN
app.post('/', async (req, res) => { app.post('/', async (req, res) => {
console.log(clientId); console.log(clientId);

@ -12,6 +12,7 @@
"axios": "^1.6.7", "axios": "^1.6.7",
"cors": "^2.8.5", "cors": "^2.8.5",
"express": "^4.18.3", "express": "^4.18.3",
"fs": "^0.0.1-security",
"mariadb": "^3.3.0" "mariadb": "^3.3.0"
} }
}, },
@ -372,6 +373,11 @@
"node": ">= 0.6" "node": ">= 0.6"
} }
}, },
"node_modules/fs": {
"version": "0.0.1-security",
"resolved": "https://registry.npmjs.org/fs/-/fs-0.0.1-security.tgz",
"integrity": "sha512-3XY9e1pP0CVEUCdj5BmfIZxRBTSDycnbqhIOGec9QYtmVH2fbLpj86CFWkrNOkt/Fvty4KZG5lTglL9j/gJ87w=="
},
"node_modules/function-bind": { "node_modules/function-bind": {
"version": "1.1.2", "version": "1.1.2",
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",

@ -13,6 +13,7 @@
"axios": "^1.6.7", "axios": "^1.6.7",
"cors": "^2.8.5", "cors": "^2.8.5",
"express": "^4.18.3", "express": "^4.18.3",
"fs": "^0.0.1-security",
"mariadb": "^3.3.0" "mariadb": "^3.3.0"
} }
} }

Loading…
Cancel
Save