Git Product home page Git Product logo

hexo-deployer-heroku's People

Contributors

curbengh avatar d-sketon avatar dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar jlhwung avatar nemanjan00 avatar noahdragon avatar segayuu avatar stevenjoezhang avatar sukkaw avatar tomap avatar tommy351 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hexo-deployer-heroku's Issues

Please fix hexo-deployer-heroku

Check List

Please check followings before submitting a new issue.

Expected behavior

Actual behavior

i get something wrong , when i deploy hexo to heroku.

  • the log:
INFO  Deploy done: git
INFO  Deploying: heroku
INFO  Copying files from public folder...
FATAL {
  err: TypeError [ERR_INVALID_ARG_TYPE]: The "mode" argument must be integer. Received an instance of Object
      at copyFile (node:fs:2791:10)
      at go$copyFile (/home/demo/hexo/hexo-blog/node_modules/graceful-fs/graceful-fs.js:181:14)
      at copyFile (/home/demo/hexo/hexo-blog/node_modules/graceful-fs/graceful-fs.js:178:12)
      at tryCatcher (/home/demo/hexo/hexo-blog/node_modules/bluebird/js/release/util.js:16:23)
      at ret (eval at makeNodePromisifiedEval (/usr/local/lib/node_modules/hexo-cli/node_modules/bluebird/js/release/promisify.js:184:12), <anonymous>:13:39)
      at /home/demo/hexo/hexo-blog/node_modules/hexo-deployer-heroku/node_modules/hexo-fs/lib/fs.js:181:12
      at tryCatcher (/home/demo/hexo/hexo-blog/node_modules/bluebird/js/release/util.js:16:23)
      at Promise._settlePromiseFromHandler (/home/demo/hexo/hexo-blog/node_modules/bluebird/js/release/promise.js:547:31)
      at Promise._settlePromise (/home/demo/hexo/hexo-blog/node_modules/bluebird/js/release/promise.js:604:18)
      at Promise._settlePromise0 (/home/demo/hexo/hexo-blog/node_modules/bluebird/js/release/promise.js:649:10)
      at Promise._settlePromises (/home/demo/hexo/hexo-blog/node_modules/bluebird/js/release/promise.js:729:18)
      at Promise._fulfill (/home/demo/hexo/hexo-blog/node_modules/bluebird/js/release/promise.js:673:18)
      at Promise._resolveCallback (/home/demo/hexo/hexo-blog/node_modules/bluebird/js/release/promise.js:466:57)
      at Promise._settlePromiseFromHandler (/home/demo/hexo/hexo-blog/node_modules/bluebird/js/release/promise.js:559:17)
      at Promise._settlePromise (/home/demo/hexo/hexo-blog/node_modules/bluebird/js/release/promise.js:604:18)
      at Promise._settlePromise0 (/home/demo/hexo/hexo-blog/node_modules/bluebird/js/release/promise.js:649:10)
      at Promise._settlePromises (/home/demo/hexo/hexo-blog/node_modules/bluebird/js/release/promise.js:725:18)
      at _drainQueueStep (/home/demo/hexo/hexo-blog/node_modules/bluebird/js/release/async.js:93:12)
      at _drainQueue (/home/demo/hexo/hexo-blog/node_modules/bluebird/js/release/async.js:86:9)
      at Async._drainQueues (/home/demo/hexo/hexo-blog/node_modules/bluebird/js/release/async.js:102:5)
      at Immediate.Async.drainQueues [as _onImmediate] (/home/demo/hexo/hexo-blog/node_modules/bluebird/js/release/async.js:15:14)
      at processImmediate (node:internal/timers:466:21) {
    code: 'ERR_INVALID_ARG_TYPE'
  }
} Something's wrong. Maybe you can find the solution here: %s https://hexo.io/docs/troubleshooting.html
  • my env:
hexo: 6.2.0
hexo-cli: 4.3.0
os: linux 5.10.16.3-microsoft-standard-WSL2 Ubuntu 20.04 LTS (Focal Fossa)
node: 16.15.1
v8: 9.4.146.24-node.21
uv: 1.43.0
zlib: 1.2.11
brotli: 1.0.9
ares: 1.18.1
modules: 93
nghttp2: 1.47.0
napi: 8
llhttp: 6.0.4
openssl: 1.1.1o+quic
cldr: 40.0
icu: 70.1
tz: 2021a3
unicode: 14.0
ngtcp2: 0.1.0-DEV
nghttp3: 0.1.0-DEV
  • my package.json
  1 {
  2   "name": "hexo-site",
  3   "version": "0.0.0",
  4   "private": true,
  5   "scripts": {
  6     "build": "hexo generate",
  7     "clean": "hexo clean",
  8     "deploy": "hexo deploy",
  9     "server": "hexo server"
 10   },
 11   "hexo": {
 12     "version": "6.2.0"
 13   },
 14   "dependencies": {
 15     "hexo": "^6.2.0",
 16     "hexo-deployer-git": "^3.0.0",
 17     "hexo-deployer-heroku": "^0.1.2",
 18     "hexo-generator-archive": "^1.0.0",
 19     "hexo-generator-category": "^1.0.0",
 20     "hexo-generator-index": "^2.0.0",
 21     "hexo-generator-tag": "^1.0.0",
 22     "hexo-renderer-ejs": "^2.0.0",
 23     "hexo-renderer-marked": "^5.0.0",
 24     "hexo-renderer-stylus": "^2.1.0",
 25     "hexo-server": "^3.0.0",
 26     "hexo-theme-fluid": "^1.9.2",
 27     "hexo-theme-landscape": "^0.0.3"
 28   }
 29 }

How to reproduce?

  • Step1
  • Step2
  • etc...

Is the problem still there under "Safe mode"?

Environment & Settings

Node.js & npm version(node -v && npm -v)

Your site _config.yml (Optional)

Hexo and Plugin version(npm ls --depth 0)

Your package.json package.json

Others

Problem deploying to Heroku

I've updated the config file. Running hexo deploy builds the folder and pushes to my repo, but deploy fails with the error:

-----> Failed to detect set buildpack https://codon-buildpacks.s3.amazonaws.com/buildpacks/heroku/nodejs.tgz More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure ! Push failed

I've tried deploying to Heroku git and to GitHub git with Heroku hook; both fail with the above error.

Is there a workaround for this?

Not creating necessary files

Hi, I noticed that main.js (starting point/server), Procfile and package.json that are indeed necessary for Heroku to make the app run are not being created and I think it should be, this tool responsability to do so.

Any way best regards and thank you for the great job.

Does not deploy .hidden file

Are the hidden files ignored before last commit? Or how do I solve this?

I would like to push .htaccess to the server and I have generated this file at the root of the public folder.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.