{"action":"created","issue":{"url":"https://api.github.com/repos/czlee/tabbycat/issues/272","repository_url":"https://api.github.com/repos/czlee/tabbycat","labels_url":"https://api.github.com/repos/czlee/tabbycat/issues/272/labels{/name}","comments_url":"https://api.github.com/repos/czlee/tabbycat/issues/272/comments","events_url":"https://api.github.com/repos/czlee/tabbycat/issues/272/events","html_url":"https://github.com/czlee/tabbycat/issues/272","id":128731273,"number":272,"title":"Consider switching local server to waitress to match heroku","user":{"login":"philipbelesky","id":495961,"avatar_url":"https://avatars.githubusercontent.com/u/495961?v=3","gravatar_id":"","url":"https://api.github.com/users/philipbelesky","html_url":"https://github.com/philipbelesky","followers_url":"https://api.github.com/users/philipbelesky/followers","following_url":"https://api.github.com/users/philipbelesky/following{/other_user}","gists_url":"https://api.github.com/users/philipbelesky/gists{/gist_id}","starred_url":"https://api.github.com/users/philipbelesky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philipbelesky/subscriptions","organizations_url":"https://api.github.com/users/philipbelesky/orgs","repos_url":"https://api.github.com/users/philipbelesky/repos","events_url":"https://api.github.com/users/philipbelesky/events{/privacy}","received_events_url":"https://api.github.com/users/philipbelesky/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/czlee/tabbycat/labels/question/discussion","name":"question/discussion","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-26T05:39:43Z","updated_at":"2016-02-03T08:33:29Z","closed_at":null,"body":"Ideally our develop and production environment should be as closely match as possible. Running a different web servers can create complications, as I found today where there was an issue in the way static files were served on heroku (using a proper separate fileserver) vs offline (where django serves them directly, but only if DEBUG is true).\r\n\r\nSwitching to waitress for local install should be painless — it has no other dependencies, is probably faster out of the box, is probably better suited to serving over a busy LAN, and we can remove the fallback static serving code. Docs would need to be updated/tested if this goes ahead."},"comment":{"url":"https://api.github.com/repos/czlee/tabbycat/issues/comments/179088879","html_url":"https://github.com/czlee/tabbycat/issues/272#issuecomment-179088879","issue_url":"https://api.github.com/repos/czlee/tabbycat/issues/272","id":179088879,"user":{"login":"philipbelesky","id":495961,"avatar_url":"https://avatars.githubusercontent.com/u/495961?v=3","gravatar_id":"","url":"https://api.github.com/users/philipbelesky","html_url":"https://github.com/philipbelesky","followers_url":"https://api.github.com/users/philipbelesky/followers","following_url":"https://api.github.com/users/philipbelesky/following{/other_user}","gists_url":"https://api.github.com/users/philipbelesky/gists{/gist_id}","starred_url":"https://api.github.com/users/philipbelesky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philipbelesky/subscriptions","organizations_url":"https://api.github.com/users/philipbelesky/orgs","repos_url":"https://api.github.com/users/philipbelesky/repos","events_url":"https://api.github.com/users/philipbelesky/events{/privacy}","received_events_url":"https://api.github.com/users/philipbelesky/received_events","type":"User","site_admin":false},"created_at":"2016-02-03T08:33:29Z","updated_at":"2016-02-03T08:33:29Z","body":"Ok, this is a go and is linked to #277. Particularly when using file compression in conjunction with static file serving I want to cut out the default method of serving static files entirely. Note the changes to the documentation, and the use of `waitress-serve` over `dj runserver` in all circumstances. If you want to get fancy (or keep the local URLs the same as before) you can use:\r\n\r\n    waitress-serve --port=8000 --host=127.0.0.1 --expose-tracebacks --channel-timeout=6000 --threads=12 wsgi:application\r\n\r\nThis has been tested on OSX, will need to also test on:\r\n\r\n- [ ] Linux\r\n- [ ] Windows"}}