You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
4. As an application hosted by [IBM Cloud](https://https://www.ibm.com/cloud)
16
+
4. As an application hosted by [IBM Cloud](https://https://www.ibm.com/cloud)
14
17
15
18
## 1. As a standalone app
16
19
17
-
1. install [python](https://www.python.org/)
20
+
1. install [python](https://www.python.org/)
18
21
2.`git clone` the project then `cd` into the directory
19
22
3. run `virtualenv -p /usr/bin/python3 venv`or `python -m venv venv` to create a virtual environment
20
23
4. activate it using `source venv/bin/activate`
@@ -23,7 +26,7 @@ This app is designed to run in different ways:
23
26
### running the app
24
27
25
28
After installing, run the server using `python app.py`
26
-
Access the running app in a browser at the URL written to the console (most likely http://localhost:5000)
29
+
Access the running app in a browser at the URL written to the console (most likely <http://localhost:5000>)
27
30
28
31
## 2. As a Docker container running on your machine
29
32
@@ -32,30 +35,32 @@ Access the running app in a browser at the URL written to the console (most like
32
35
3. run `docker build -t flask-hello-world:latest .` to build the docker image
33
36
4.`docker images` list the local avaible images
34
37
5. run `docker run --name flask_hello_world -d -p 8000:5000 --rm flask-hello-world:latest` to start the container
35
-
6. Navigate to http://localhost:8000 in a browser to see the results. If you want to share it with your local network devices navigate to http://[your-ip-address]:8000
38
+
6. Navigate to <http://localhost:8000> in a browser to see the results. If you want to share it with your local network devices navigate to http://[your-ip-address]:8000
36
39
37
40
## 3. As a Docker image published in Docker Hub
41
+
38
42
Docker Hub is a free service to publicly store available images.
43
+
39
44
1. you need to install only [Docker](https://www.docker.com/)
40
-
2. just run `docker run -d -p 8080:5000 --name flask ahmnouira/flask-hello-world`
45
+
2. just run `docker run -d -p 8080:5000 --name flask ahmnouira/flask-hello-world`
41
46
42
47

43
48
44
-
## 4. As an application hosted by IBM Cloud
49
+
## 4. As an application hosted by IBM Cloud
50
+
45
51
:octocat: Before you begin, verify that you have completed the below steps:
46
52
47
-
* you have access to an [IBM Cloud account](https://cloud.ibm.com/registration).
53
+
* you have access to an [IBM Cloud account](https://cloud.ibm.com/registration).
48
54
* the [IBM Cloud CLI](https://cloud.ibm.com/docs/cli?topic=cloud-cli-getting-started) is installed in your workstation.
49
55
50
-
1. clone the repository by running `git clone https://github.com/AhmNouira/flask-hello-world`
51
-
2.`cd flask-hello-world`
56
+
1. clone the repository by running `git clone https://github.com/AhmNouira/flask-hello-world`
57
+
2.`cd flask-hello-world`
52
58
2. run `bx login` to login to your IBM cloud account and enter your email and password
53
-
3.`bx target --cf` to target the Cloud Foundary
54
-
To check the default organization and space to which you have access, go to https://cloud.ibm.com/account/cloud-foundry.
59
+
3.`bx target --cf` to target the Cloud Foundary
60
+
To check the default organization and space to which you have access, go to <https://cloud.ibm.com/account/cloud-foundry>.
55
61
4.`bx cf push` to push the application to IBM Cloud
56
-
5. if you found any error run `bx cf logs flask-hello-world --recent` to see the troubleshoot
62
+
5. if you found any error run `bx cf logs flask-hello-world --recent` to see the troubleshoot
57
63
6. check whether your app is running `bx cf app flask-hello-world`
58
64
7. to explore how your app directories are structured `bx cf ssh flask-hello-world`
0 commit comments