I was trying to deploy website with uwsgi + pypy + flask. Failed with uwsgi error message as below:
*** no app loaded. GAME OVER ***
My Environment and scripts are:
$ uname -a
Linux xxxxx 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:12 UTC 2014 i686 i686 i686 GNU/Linux
$ pypy --version
Python 2.7.10 (3360adbeba4a, Apr 19 2016, 13:27:10)
[PyPy 5.1.0 with GCC 4.6.3]
$ uwsgi --version
1.9.17.1-debian
Note: the uwsgi is installed with pip in pypy virtualenv
flasktest.py:
from flask import Flask
application = Flask(__name__)
@application.route("/")
def hello():
return "Hello!"
The command to run website
$ uwsgi --chmod-socket=777 \
--chdir /path/mysite --pypy-wsgi flasktest \
--master --socket 127.0.0.1:8000 --need-app
Anyone have any idea that in which part I did wrong?