2016-09-06 71 views

回答

0

我keras Compute Engine上的工作。要导入重型库,我们需要在.conf文件中设置某些参数。

下面的代码添加到您的/etc/apache2/sites-enables/yourapp.conf文件:

WSGIDaemonProcess yourapp user=you group=somegroup processes=1 threads=5 
<Directory /home/directory/to/webserver/html/appdir/app.wsgi> 
    WSGIProcessGroup yourapp 
    WSGIApplicationGroup %{GLOBAL} 
    Order deny,allow 
    Allow from all 
</Directory> 

请参阅此链接的详细信息 - http://cmry.github.io/notes/bottle