Created
August 6, 2014 16:41
-
-
Save ahgittin/50d116b69addabbf792f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat > index.html << --EOF-- | |
<html><body> | |
<h1>Hello World</h1> | |
<p> | |
This is a sample Brooklyn-deployed web server, built on netcat. | |
Of course you can use any script here, or pre-built blueprints for common webapp, nosql, message software, | |
services, clusters, or a pre-built imageId, or Chef -- up to you. | |
</p> | |
<p> | |
Management policies can then be mixed in. | |
</p> | |
</body></html> | |
--EOF-- | |
while true; do { echo -e 'HTTP/1.1 200 OK\r\n'; cat index.html; } | nc -l 8080; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment