如何用uwsgi Emperor指定不同级别的多个目录?

时间:2018-04-25 12:07:27

标签: python uwsgi

我有多个uwsgi.ini。

class MyController {

    @Autowired()
    AssetResourceLocator assetResourceLocator

    def downloadExcelTemplate () {

        String fileName = "MyExcelFile.xlsx"

        /* Note: these files are found in /web-app/downloadable directory */

        Resource resource = assetResourceLocator.findResourceForURI("/downloadable/$fileName")

        response.setHeader "Content-disposition", "attachment; filename=${resource.filename}"
        response.contentType = 'application/vnd.ms-excel'
        response.outputStream << resource.inputStream.bytes
    }
}

在这种情况下,如何使用Emperor指定多个目录?

/etc/uwsgi/vassals/a/uwsgi_a.ini
/etc/uwsgi/vassals/b/hoge/uwsgi_b.ini

0 个答案:

没有答案