Skip to content

mistio/simple-python-webserver-blueprint

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-python-webserver-blueprint

This is the blueprint example used for Cloudify's Intro section in our Docs.

The blueprint runs a local Python SimpleHTTPServer and allows to tear it down as well and supports Linux,

Usage

  • Clone the repository
git clone https://github.com/cloudify-examples/simple-python-webserver-blueprint.git
cd simple-python-webserver-blueprint
  • Initialize the blueprint
cfy local init --blueprint-path blueprint.yaml
  • Install
cfy local execute -w install

This will run a Hello World server on your local machine in port 8000. You can curl http://localhost:8000 or open the link in your browser.

  • Get Outputs
cfy local outputs

You should see the endpoint of the webserver.

  • Get Instances
cfy local instances

You should see the two instances as defined in the blueprint.

  • Uninstall
cfy local execute -w uninstall

About

A local, cross-platform PythonHTTPServer blueprint example

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 91.5%
  • HTML 8.5%