Skip to content

Instantly share code, notes, and snippets.

@brumar
Last active August 7, 2017 08:46
Show Gist options
  • Select an option

  • Save brumar/fdfedfd61000757ee36c946c95e7ec59 to your computer and use it in GitHub Desktop.

Select an option

Save brumar/fdfedfd61000757ee36c946c95e7ec59 to your computer and use it in GitHub Desktop.
pythonanywhere WSGI launcher for api star 0.1.17
# 1/ New Web App -> Custom WSGI
# 2/ Open var/www/your_username_pythonanywhere_com_wsgi.py
# 3/ Comment all active code and paste this one
from apistar import app as appstar
import sys
path = "/home/path/to/you/apistar_project" # change this line
if path not in sys.path:
sys.path.append(path)
import app as myapp
application = appstar.get_wsgi_server(myapp.app)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment