-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make it easy to run Citizenry on Heroku #45
Comments
I'm doing this now and wanted to share my notes as I progressed.
There are likely many more changes (sphinx, various settings); I'll report back with my progress. |
Done. I combined my notes along with the other two wiki entries. I haven't looked at S3 for paperclip uploads yet. Anyone want to take a stab at that? |
I'm having trouble deploying to Heroku: I started from the procedure documented at https://github.com/reidab/citizenry/wiki/Deploying-to-Heroku , except that I deployed to a cedar stack (bamboo is no longer available). I've got Twitter authentication working, but adding the LinkedIn key and secret fails with a redirect to /auth/failure?message=invalid_response, Google fails with 'Request-URI Too Large', and Github fails with 'The page you were looking for doesn't exist.'. Oh, and what do I need to do to to disable various authentication providers? Anyway, as soon as I added one person (myself) the home page broke with 'We're sorry, but something went wrong.' Other pages such as /people are working, so the site is being populated, but I need to fix the homepage. You can see the changes (yes, including the keys and secrets) I made to configuration and gems here: https://github.com/NM-Tech-Directory/citizenry/ Can anyone help me get this deployment working? |
Another problem: As we've been adding people, profile photos for the people we added earlier are getting broken: http://nmtechdir.herokuapp.com/people |
I'm having the same "dropped photo" problem. |
@webmaven @elliottw Did you include the change to store photos on S3? If not then you're using local filesystem storage which is not shared between dynos and is destroyed when the dyno is. https://devcenter.heroku.com/articles/dynos#ephemeral-filesystem |
Ah. Thanks @pauldowman, no I hadn't. Once I make the change to S3, what do I do about existing profiles etc. that have already had their photos destroyed? |
Hosting Rails applications can be a real pain for people and hinders adoption. Heroku offers free/cheap hosting, but offers a very odd and limited environment, and we have to port to it so they can run the app. I've already done much of the work needed, but some more is needed:
Gemfile
: Lock down versions, add logic to dynamically load appropriate database driver, and stop putting theGemfile.lock
into the public version control. Update instructions to reflect these changes. See https://github.com/calagator/calagator/blob/master/Gemfile for an example of a dynamicGemfile
that loads the database driver.The text was updated successfully, but these errors were encountered: