Closed daaain closed 11 years ago
This is probably a problem with your Procfile. What happens when you run foreman start
on a local clone of your app?
I don't have a Procfile, I think it should work with the default bundle exec rackup config.ru -p $PORT
?
When I run bundle exec rackup config.ru
locally it does work nicely.
That may be the problem -- heroku uses the Procfile to boot up all your apps.
I tried creating one with web: bundle exec rackup config.ru -p $PORT
, but the same thing happens :(
Sounds like the right diagnosis, just have to find the solution.
Are you using the Gemified version? If so, there should be no Procfile. bundle exec rackup config.ru -p $PORT
is run by default.
I am, the latest (0.1.2) version. Not sure if it's relevant, but I'm using GITHUB_ORG_ID not the team one.
It's all very strange, even if I try to relaunch the process from Heroku's dashboard by clicking on the checkbox, it dies off and the box is unchecked when I refresh the page.
Couldn't get any useful info from the log, there are no Ruby stack traces or anything. I'm new to Heroku, so might be missing something though. Is there a way to trigger verbose / debug output with the Gem itself?
This is from the application instance... And this is from the github-heroku-pusher instance
Re-read your original comment and I think I see what's going on. Did a deploy, and my log is virtually identical to yours... it looks like jekyll-auth is working as expected... just in the wrong place. Jekyll-auth should be on the web instance, not the deploy instance. Never used github-heroku-pusher, but you'll want to ensure after each push rake assets::precompile
(or some other way to build the site) is fired, and that the jekyll-auth
server starts.
In short, you should be adding jekyll-auth
to your site itself right along side the content, not to the thing pushing it to Heroku as based on the above log, it looks like you're doing.
Wait, jekyll-auth
IS on the app instance, that log from the pusher instance is what is piped back from the app instance via the Git push to Heroku's repo. And you can see that it does run the Rake task (Asset precompilation completed (4.74s)
), it's just the webserver which doesn't want to run for some reason.
Not sure if that helps, but I'm trying to use jekyll-auth
with Prose Starter: https://github.com/prose/starter, could it be that there is some setting in there which breaks it? In _config.yml
I changed the baseurl
as that's specific to their Github Pages setup and added exclude: ['vendor']
as trying to compile the content of all installed Gems were totally throwing the wheels off Jekyll.
If you push directly to the app instance do you have the same problem?
Also, to confirm, you ran jekyll-auth new
from the repo to set up Config.ru
?
Perhaps you could remove any content from the repo and post it to an open source repository? At the very least, a screenshot of the root directory may be helpful.
Pushing directly is the same, first this pusher instance didn't even work so I was doing it directly for a while.
You mean jekyll-auth new
right? Yes, I did that, though I had to edit the settings manually afterwards as it created an empty GITHUB_TEAM_ID so I removed that and added GITHUB_ORG_ID instead.
At the moment there's nothing specific in there yet so I put everything into a public repo: https://github.com/daaain/jekyll-auth-test
Thanks a lot for helping out by the way, really appreciated!
Cloned your site, ran jekyll-auth new
and opened the resulting site to get the bouncercat as expected. If you run heroku logs
on the app instance is there anything useful there? Perhaps your oauth application and callback are not properly configured?
Yes, I did that, though I had to edit the settings manually afterwards as it created an empty GITHUB_TEAM_ID so I removed that and added GITHUB_ORG_ID instead.
That should now be fixed in https://github.com/benbalter/jekyll-auth/commit/7bb545a15d5e3b17c195ecad1301c65da9f80d48.
Thanks a lot for trying it, as a last resort I deleted and recreated the Heroku app, ran jekyll-auth new
and it works perfectly now, yay! :)
Not sure what could have been going wrong, I'll just chalk it up as my Heroku noobness...
This might be very well something badly set up on my side, but can't for my life figure out why Heroku refuses to run the process :( It runs beautifully locally, redirects to the Github OAuth page straight away.
The deployment looks all right, but in the end I get application error from Heroku. I've tried both with Ruby 1.9.3 and 2.0.0 just in case.
This is from the application instance:
And this is from the github-heroku-pusher instance: