Skip to content

Instantly share code, notes, and snippets.

@javierhonduco
Created September 4, 2012 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save javierhonduco/3622034 to your computer and use it in GitHub Desktop.
Save javierhonduco/3622034 to your computer and use it in GitHub Desktop.
Just the flask server version of wonderful @mattt's https://github.com/mattt/GroundControl/ Just add a procfile and maybe gunicorn. Enjoy! ;)
from flask import Flask
from plistlib import writePlistToString
app = Flask(__name__)
@app.route("/")
def default_plist():
plist_content = {
'Greeting' : "Hello, World",
'Price' : 4.20,
'FeatureXIsLaunched' : True
}
return writePlistToString(plist_content)
if __name__ == "__main__":
app.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment