(self, handler)
| 3848 | """ Untested. See http://gunicorn.org/configure.html for options. """ |
| 3849 | |
| 3850 | def run(self, handler): |
| 3851 | from gunicorn.app.base import BaseApplication |
| 3852 | |
| 3853 | if self.host.startswith("unix:"): |
| 3854 | config = {'bind': self.host} |
| 3855 | else: |
| 3856 | config = {'bind': "%s:%d" % (self.host, self.port)} |
| 3857 | |
| 3858 | config.update(self.options) |
| 3859 | |
| 3860 | class GunicornApplication(BaseApplication): |
| 3861 | def load_config(self): |
| 3862 | for key, value in config.items(): |
| 3863 | self.cfg.set(key, value) |
| 3864 | |
| 3865 | def load(self): |
| 3866 | return handler |
| 3867 | |
| 3868 | GunicornApplication().run() |
| 3869 | |
| 3870 | |
| 3871 | class EventletServer(ServerAdapter): |
nothing calls this directly
no test coverage detected