On shared webhosting, though, you might not have access to your Apache
config. In this case, a file called .htaccess, sitting in the public
directory you want your app to be available, works too but the
ScriptAlias directive won’t work in that case:
RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f # Don't interfere
with static files RewriteRule ^(.*)$ /path/to/the/application.cgi/$1
[L]
这有点棘手。我要开一个私人豪华帐户。我找到的唯一方法是安装Python 3.x,然后安装virtualenv,然后使用pip install requirements.txt安装我需要的内容
在共享环境中意味着您很可能需要使用CGI来部署:
http://flask.pocoo.org/docs/deploying/cgi/
相关问题 更多 >
编程相关推荐