hexojs / hexo-deployer-heroku Goto Github PK
View Code? Open in Web Editor NEWHeroku deployer plugin for Hexo.
License: MIT License
Heroku deployer plugin for Hexo.
License: MIT License
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.
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?
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.
Please check followings before submitting a new issue.
hexo version
to check)i get something wrong , when i deploy hexo to heroku.
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
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
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 }
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
May I know that why it generate PHP file?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.