fix
This commit is contained in:
parent
86c8f16aee
commit
093af3d3bc
BIN
app/srv/site.zip
BIN
app/srv/site.zip
Binary file not shown.
|
|
@ -50,7 +50,9 @@ export const ExternalDeploy = () => {
|
||||||
local.domains = res.domains;
|
local.domains = res.domains;
|
||||||
local.deploys = res.deploys;
|
local.deploys = res.deploys;
|
||||||
}
|
}
|
||||||
} catch (e) {}
|
} catch (e) {
|
||||||
|
console.log(p.site.api_url, e);
|
||||||
|
}
|
||||||
local.render();
|
local.render();
|
||||||
})();
|
})();
|
||||||
}, [p.site.api_url]);
|
}, [p.site.api_url]);
|
||||||
|
|
|
||||||
|
|
@ -4,27 +4,26 @@ import { Plugin, context } from "esbuild";
|
||||||
import { $ } from "execa";
|
import { $ } from "execa";
|
||||||
import { removeAsync, writeAsync } from "fs-jetpack";
|
import { removeAsync, writeAsync } from "fs-jetpack";
|
||||||
|
|
||||||
// await removeAsync(dir.path("app/static"));
|
await removeAsync(dir.path("app/web/.parcel-cache"));
|
||||||
// await removeAsync(dir.path("app/web/.parcel-cache"));
|
await removeAsync(dir.path("app/static"));
|
||||||
// await removeAsync(dir.path("app/static"));
|
|
||||||
|
|
||||||
// const args = [
|
const args = [
|
||||||
// "node",
|
"node",
|
||||||
// dir.path("node_modules/.bin/parcel"),
|
dir.path("node_modules/.bin/parcel"),
|
||||||
// "build",
|
"build",
|
||||||
// "./src/index.tsx",
|
"./src/index.tsx",
|
||||||
// // "--no-optimize",
|
// "--no-optimize",
|
||||||
// "--no-scope-hoist",
|
"--no-scope-hoist",
|
||||||
// "--dist-dir",
|
"--dist-dir",
|
||||||
// dir.path(`app/static`),
|
dir.path(`app/static`),
|
||||||
// ];
|
];
|
||||||
|
|
||||||
// const parcel = spawn({
|
const parcel = spawn({
|
||||||
// cmd: args,
|
cmd: args,
|
||||||
// cwd: dir.path("app/web"),
|
cwd: dir.path("app/web"),
|
||||||
// stdio: ["ignore", "inherit", "inherit"],
|
stdio: ["ignore", "inherit", "inherit"],
|
||||||
// });
|
});
|
||||||
// await parcel.exited;
|
await parcel.exited;
|
||||||
|
|
||||||
// listAsync(dir.path("app/static")).then(async (files) => {
|
// listAsync(dir.path("app/static")).then(async (files) => {
|
||||||
// if (files) {
|
// if (files) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue