-
Notifications
You must be signed in to change notification settings - Fork 689
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
Deploy on Heroku #332
Comments
Hey @alexisrosuel! Thank you for your interest in the knowledge repo. It looks like the error you're running into here is that /app is not a repository, meaning that it is not a repository that has been initialized by the knowledge repo tooling. Specifically, you'd want to first initialize a repository
and then you'll be able to start the webserver
(thought it won't have any knowledge posts yet) Hope that helps and feel free to re-open if you're still running into this error. |
Ah - just read the related issue and I see that somehow Heroku is deleting the .git file. I'll look into this |
Hi, thanks for your answer! Indeed the first solution does not work, here are some details : if I run the heroku bash
But if I launch the server within the heroku bash, it seems to work :
and I then get an application error when trying to open the url :
|
Hey @alexisrosuel, your experience matches mine exactly. The main issue is, as you mentioned that heroku doesn't copy the .git files and therefore KR doesn't recognize the directory that you specified as a repository. You can init a repo in heroku bash as you mention, but I don't think the changes you make there persist. I'm not too familiar with Heroku myself but will play around with this to see if there's a way to do this. |
Hey @danfrankj ! Thanks for looking this, don't hesitate to ask me more details if needed :) |
Hi All! A while back I started work on improving the tooling related to the knowledge repo in #308, and as part of that I added support for "FolderKnowledgeRepositories", which are basically a collection of knowledge posts in zip or folder form inside a folder. That should have no trouble working in a heroku context. Can you confirm? [No configuration changes should be necessary for you, since the FolderKnowledgeRepository takes over the unprefixed knowledge repository path, and to get at git you will have to add a 'git://' prefix]. That work lapsed due to some paid time off, and my wife's being now quite heavily pregnant... but I'll finish it off soon. If that branch does work for you, then I'll merge the FolderKnowledgeRepository support in even if the the actual new scripts are not ready. |
Hi all ! The branch update folder repo works fine for me on Heroku :) Thanks a lot ! |
@alexisrosuel Glad to hear it! Thanks for testing! We'll leave this issue open until this code makes it into master in case others come by with the same issues :). |
Hi, was curious if the Heroku setting made it in master yet and if it hasn't is there an expected date. Thanks! |
Is there another solution or workaround as the folder.py solution is still pending? |
Auto-reviewers: @NiharikaRay @matthewwardrop @earthmancash @danfrankj
I am trying to host my knowledge repo on Heroku, and I have the same issue than issue 314 . This issue has been closed because the author found another solution (using Docker), but I would like to reopen this issue in order to fix it directly.
As a reminder, here is the Procfile to deploy on Heroku :
web: knowledge_repo --repo /app runserver --port $PORT
and here is the error log :
Thanks
The text was updated successfully, but these errors were encountered: