Skip to content
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

Fix loading deployer of Heroku and OpenShift. #594

Merged
merged 1 commit into from
Apr 25, 2014
Merged

Fix loading deployer of Heroku and OpenShift. #594

merged 1 commit into from
Apr 25, 2014

Conversation

NicholasTD07
Copy link
Contributor

I wrote a blog about how I Fixed Hexo's Deployer.

Before this fix:

When trying to deploy blog to Heroku error happens, because the deployer for Heroku isn't loaded.
Same for OpenShift's deployer.

Suggestion:

In hexo/lib/loaders/entend.js, a logging could be added for errors at 31th line in the catch statement. Because if not the error is hidden by that catch statement.
Here's what I added when I was debugging:

try {
   require('../plugins/' + item);
} catch (e){
  hexo.log.e("Failed loading: " + item + " for: " + e);
}

If you need anything, just leave me a comment. 😄 #### PS.

Hexo is AWESOME! Great work!
Thanks.

Before:
When try to deploy to Heroku error happens,
because the deployer of it isn't loaded.
Same for OpenShift's deployer.

Suggestion:
In lib/loaders/entend.js, add a logging for errors at 31th line in
the catch statement. Something like this:

``` javascript
try {
   require('../plugins/' + item);
} catch (e){
  hexo.log.e("Failed loading: " + item + " for: " + e);
}
```
tommy351 added a commit that referenced this pull request Apr 25, 2014
Fix loading deployer of Heroku and OpenShift.
@tommy351 tommy351 merged commit 0c07590 into hexojs:master Apr 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants