我已经使用 Python Paste Deploy 脚本来部署 Flask+Gunicorn 项目。但是,我不能用( h )s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%( f)”。因为我们的 %(h)s格式在 Paste Deploy 脚本中有特殊的含义。如文档中所述:
You can use variable substitution, which will pull variables from
the section [DEFAULT] (case sensitive!) with markers like %
(var_name)s. The special variable %(here)s is the directory
containing the configuration file;
但是我可以解决这个问题吗?