Skip to content

Commit 1391d83

Browse files
committed
more readme
1 parent e219ad2 commit 1391d83

1 file changed

Lines changed: 51 additions & 2 deletions

File tree

README.md

Lines changed: 51 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,51 @@
1-
# cloudify-simple-python-webserver-example
2-
A local, cross-platform PythonHTTPServer blueprint example
1+
# simple-python-webserver-blueprint
2+
3+
This is the blueprint example used for Cloudify's Intro section in our [Docs](http://docs.get-cloudify.org).
4+
5+
The blueprint runs a local Python SimpleHTTPServer and allows to tear it down as well and supports Linux,
6+
7+
## Usage
8+
9+
* Clone the repository
10+
11+
```bash
12+
git clone https://github.com/cloudify-examples/simple-python-webserver-blueprint.git
13+
cd simple-python-webserver-blueprint
14+
```
15+
16+
* Initialize the blueprint
17+
18+
```bash
19+
cfy local init --blueprint-path blueprint.yaml
20+
```
21+
22+
* Install
23+
24+
```bash
25+
cfy local execute -w install
26+
```
27+
28+
This will run a `Hello World` server on your local machine in port 8000.
29+
You can `curl http://localhost:8000` or open the link in your browser.
30+
31+
* Get Outputs
32+
33+
```bash
34+
cfy local outputs
35+
```
36+
37+
You should see the endpoint of the webserver.
38+
39+
* Get Instances
40+
41+
```bash
42+
cfy local instances
43+
```
44+
45+
You should see the two instances as defined in the blueprint.
46+
47+
* Uninstall
48+
49+
```bash
50+
cfy local execute -w uninstall
51+
```

0 commit comments

Comments
 (0)