add post
This commit is contained in:
1 parent
bc3b5edd9e
commit
4fe597979c
5 files changed
+125
-6
No files matched your search
@@ -1,5 +1,4 @@
|
||||
const ghPages = require("gh-pages");
|
||||
const fs = require("fs");
|
||||
const {spawnSync} = require("child_process");
|
||||
const rimraf = require("rimraf");
|
||||
|
||||
@@ -9,9 +8,7 @@ spawnSync("cogear", ["build"], {
|
||||
stdio: "inherit"
|
||||
});
|
||||
|
||||
fs.writeFileSync("public/index.php", "<?php header( 'Location: /index.html' ) ; ?>");
|
||||
|
||||
ghPages.publish("public", {
|
||||
ghPages.publish("dist", {
|
||||
branch: "master",
|
||||
repo: "https://git.heroku.com/zhdiary.git"
|
||||
}, (err) => {
|
||||
|
||||
Reference in new issue
Block a user