{"action":"created","issue":{"url":"https://api.github.com/repos/Charlotteis/guestbook/issues/1","labels_url":"https://api.github.com/repos/Charlotteis/guestbook/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/Charlotteis/guestbook/issues/1/comments","events_url":"https://api.github.com/repos/Charlotteis/guestbook/issues/1/events","html_url":"https://github.com/Charlotteis/guestbook/issues/1","id":53518940,"number":1,"title":"Can I actually deploy a cgi script to something like Heroku?","user":{"login":"Charlotteis","id":542140,"avatar_url":"https://avatars.githubusercontent.com/u/542140?v=3","gravatar_id":"","url":"https://api.github.com/users/Charlotteis","html_url":"https://github.com/Charlotteis","followers_url":"https://api.github.com/users/Charlotteis/followers","following_url":"https://api.github.com/users/Charlotteis/following{/other_user}","gists_url":"https://api.github.com/users/Charlotteis/gists{/gist_id}","starred_url":"https://api.github.com/users/Charlotteis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Charlotteis/subscriptions","organizations_url":"https://api.github.com/users/Charlotteis/orgs","repos_url":"https://api.github.com/users/Charlotteis/repos","events_url":"https://api.github.com/users/Charlotteis/events{/privacy}","received_events_url":"https://api.github.com/users/Charlotteis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Charlotteis/guestbook/labels/help+wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-06T14:21:31Z","updated_at":"2015-01-13T00:05:34Z","closed_at":null,"body":"~"},"comment":{"url":"https://api.github.com/repos/Charlotteis/guestbook/issues/comments/69672230","html_url":"https://github.com/Charlotteis/guestbook/issues/1#issuecomment-69672230","issue_url":"https://api.github.com/repos/Charlotteis/guestbook/issues/1","id":69672230,"user":{"login":"tomwhoiscontrary","id":539012,"avatar_url":"https://avatars.githubusercontent.com/u/539012?v=3","gravatar_id":"","url":"https://api.github.com/users/tomwhoiscontrary","html_url":"https://github.com/tomwhoiscontrary","followers_url":"https://api.github.com/users/tomwhoiscontrary/followers","following_url":"https://api.github.com/users/tomwhoiscontrary/following{/other_user}","gists_url":"https://api.github.com/users/tomwhoiscontrary/gists{/gist_id}","starred_url":"https://api.github.com/users/tomwhoiscontrary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomwhoiscontrary/subscriptions","organizations_url":"https://api.github.com/users/tomwhoiscontrary/orgs","repos_url":"https://api.github.com/users/tomwhoiscontrary/repos","events_url":"https://api.github.com/users/tomwhoiscontrary/events{/privacy}","received_events_url":"https://api.github.com/users/tomwhoiscontrary/received_events","type":"User","site_admin":false},"created_at":"2015-01-13T00:05:34Z","updated_at":"2015-01-13T00:05:34Z","body":"It's definitely *possible*, because you can use custom buildpacks on Heroku, which basically lets you do anything. But writing a custom buildpack could be quite an undertaking.\r\n\r\nThe answer here should work - run a persistent app that is a CGI server:\r\n\r\nhttp://stackoverflow.com/questions/13520175/run-python-cgi-application-on-heroku\r\n\r\nAnd some loonbag has already written a custom buildpack which only does CGI - in shell script (turns out quite simple, but it's not exactly production-strength):\r\n\r\nhttps://github.com/charliesome/heroku-buildpack-cgi\r\n\r\nActually using a custom buildpack is not too hard:\r\n\r\nhttps://devcenter.heroku.com/articles/buildpacks\r\n\r\nYou can specify the buildpack in the app.json:\r\n\r\nhttps://devcenter.heroku.com/articles/app-json-schema\r\n\r\nWhich means you can deploy it using a button on the GitHub page:\r\n\r\nhttps://devcenter.heroku.com/articles/heroku-button"}}