codeforamerica / posting-pro

2016 NOLA Fellowship project | A job posting builder that guides employers towards creating more effective job postings that are free of implicit bias.
https://posting-pro.herokuapp.com
MIT License
6 stars 3 forks source link

Add templates #93

Closed pacarole closed 8 years ago

pacarole commented 8 years ago

Definitely needs style work but everything is functional! You can upload templates new templates and delete existing ones. The current password for the admin section is 'admin' and 'admin'. We should probably change that and put it in an environment variable. closes #85 and #86

antislice commented 8 years ago

Getting errors on posting-pro-staging-pr-93 when I try to upload/delete templates. The requests succeed - I can see the results when I refresh the page, but they return a 503 error and so it looks like nothing happens after I click the buttons.

Error from heroku logs:

2016-07-29T17:25:28.344423+00:00 app[web.1]: 69.12.169.82 - - [29/Jul/2016:17:25:28 +0000] "POST /api/templates/5/delete HTTP/1.1" 1 - 0.0032
2016-07-29T17:25:28.417700+00:00 heroku[router]: http_error="Invalid HTTP status line" at=error code=H17 desc="Poorly formatted HTTP response" method=POST path="/api/templates/5/delete" host=posting-pro-staging-pr-93.herokuapp.com request_id=7b144ae2-ed0b-45a8-9d11-c1061b3006d5 fwd="69.12.169.82" dyno=web.1 connect=2ms service=7ms status=503 bytes=239
antislice commented 8 years ago

Tested it locally, and actually the "nothing happens when I click the button" is there, too. But at least no 503 error.

antislice commented 8 years ago

*cache

antislice commented 8 years ago

👍 :ship: because it works, but I'd still like an answer to the halt question