From 87490d626312774a019fe803659ab729f83ef862 Mon Sep 17 00:00:00 2001 From: dandanalaa Date: Tue, 13 Dec 2022 17:29:35 +0000 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'scripts/deliver.sh?= =?UTF-8?q?'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit modification script delivrer --- scripts/deliver.sh | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/scripts/deliver.sh b/scripts/deliver.sh index 7f10a7f..a87cc93 100644 --- a/scripts/deliver.sh +++ b/scripts/deliver.sh @@ -1,29 +1,18 @@ #!/usr/bin/env sh -echo 'The following "npm" command builds your Node.js/React application for' -echo 'production in the local "build" directory (i.e. within the' -echo '"/var/jenkins_home/workspace/simple-node-js-react-app" directory),' -echo 'correctly bundles React in production mode and optimizes the build for' -echo 'the best performance.' set -x npm run build set +x -echo 'The following "npm" command runs your Node.js/React application in' -echo 'development mode and makes the application available for web browsing.' -echo 'The "npm start" command has a trailing ampersand so that the command runs' -echo 'as a background process (i.e. asynchronously). Otherwise, this command' -echo 'can pause running builds of CI/CD applications indefinitely. "npm start"' -echo 'is followed by another command that retrieves the process ID (PID) value' -echo 'of the previously run process (i.e. "npm start") and writes this value to' -echo 'the file ".pidfile".' + set -x npm start & sleep 1 echo $! > .pidfile set +x -echo 'Now...' -echo 'Visit http://localhost:3000 to see your Node.js/React application in action.' -echo '(This is why you specified the "args ''-p 3000:3000''" parameter when you' -echo 'created your initial Pipeline as a Jenkinsfile.)' \ No newline at end of file +echo 'Maintenant...' +echo 'Visiter https://devops.dsp-archiwebo21-ad-ec-cb-mt.fr/ ' +echo 'L_application tourne sur le docker jenkins sur via le port 3000 voici un ip a' +ip a +echo 'Pour fermer l_application a appuyer sur le bouton proced' \ No newline at end of file