From 4b40fcf8445dcfbf69eb58a86321d5ff217f1616 Mon Sep 17 00:00:00 2001 From: greglebreton Date: Sun, 19 Mar 2023 23:56:29 +0100 Subject: [PATCH] correction README.md + clean up app/deploy.sh --- README.md | 7 ++++++- app/deploy.sh | 5 +---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 32c4315..972c367 100644 --- a/README.md +++ b/README.md @@ -62,4 +62,9 @@ terraform apply # Saisir yes quand demandé ``` -> Visiter l'adresse fournie en output du terraform apply \ No newline at end of file +> Visiter l'adresse fournie en output du terraform apply (Web-server-URL = "http://SERVER_IP:5000") + +- Stopper Terraform: +```bash +terraform destroy +``` \ No newline at end of file diff --git a/app/deploy.sh b/app/deploy.sh index 53eee0e..c425865 100644 --- a/app/deploy.sh +++ b/app/deploy.sh @@ -3,7 +3,4 @@ sudo apt-get update sudo apt-get install -yq docker.io sudo docker build --network=host -t flaskapp . -sudo docker run -d -p 5000:5000 flaskapp:latest -#python3 -m pip install flask -#python3 app.py >> log.txt 2>&1 & -#nohup python3 -u ./app.py > output.log & \ No newline at end of file +sudo docker run -d -p 5000:5000 flaskapp:latest \ No newline at end of file