我有多个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