Created
February 22, 2013 03:48
-
-
Save kihon10/5010568 to your computer and use it in GitHub Desktop.
uwsgi + heroku
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| I tried to use uwsgi on heroku. Latest version, uwsgi commit 591cec9a2ccad8533bd5d217a3cfd63fd2b0ee98 | |
| But I get this strange behavior: | |
| - my app is 100% restful, using only json to communicate. | |
| So, I send this message body using a curl client POST: | |
| {"username":"[email protected]","password":"asdfg1"} | |
| but uwsgi will send this to my bottle app: | |
| /api/auth/[email protected]","password":"asdfg1"} | |
| It is overwriting the body with the url path. | |
| I use: | |
| curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X POST -d '{"username":"[email protected]","password":"asdfg1"}' http://my-app.herokuapp.com/api/auth/login | |
| The last working version is: | |
| e50a7c518f6ba352e276b326da17310f4cc4fab8 - works 100% on heroku | |
| I can use this version safely on heroku. My curl command above works like a charm with this uwsgi version. | |
| The following versions will not work at all | |
| commit: | |
| d4130dbc4bfc6c2905478348d4aba82b9905728f - will not even compile | |
| f117f404fc283a9d27db850f9b981436f5aeb555 - will not compile | |
| 5552e87087704ba80bf30e52c01b3a2cebdae9e4 - error | |
| ... | |
| 591cec9a2ccad8533bd5d217a3cfd63fd2b0ee98 - latest version - does not work at all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment