This commit is contained in:
patarapolw committed 2019-08-21 19:03:44 +07:00
1 parent bc3b5edd9e
commit 4fe597979c
5 files changed
+125 -6

No files matched your search

+1 -4
View File
@@ -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) => {