fix deploy
This commit is contained in:
parent
26991eaf7e
commit
b8112f5540
|
|
@ -1,4 +1,4 @@
|
|||
FROM oven/bun:1.1.24 as base
|
||||
FROM oven/bun:1.1.26 as base
|
||||
WORKDIR /app/prasi/repo
|
||||
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@ const isInstalling = async (id_site: string) => {
|
|||
|
||||
if (should_install) {
|
||||
await Bun.write(pkg, JSON.stringify(pkg_json, null, 2));
|
||||
await $`npm i`.cwd(code.path(id_site, "site", "src")).quiet();
|
||||
await $`npm i`.cwd(code.path(id_site, "site", "src")).quiet().nothrow();
|
||||
}
|
||||
}
|
||||
} catch (e) {}
|
||||
|
|
@ -231,9 +231,9 @@ import React from "react";
|
|||
});
|
||||
} else {
|
||||
await codeError(id_site, "");
|
||||
await $`rm -rf ${out_dir_old}`.quiet();
|
||||
await $`mv ${out_dir} ${out_dir_old}`.quiet();
|
||||
await $`mv ${out_dir_temp} ${out_dir}`.quiet();
|
||||
await $`rm -rf ${out_dir_old}`.quiet().nothrow();
|
||||
await $`mv ${out_dir} ${out_dir_old}`.quiet().nothrow();
|
||||
await $`mv ${out_dir_temp} ${out_dir}`.quiet().nothrow();
|
||||
|
||||
const now = Date.now();
|
||||
client_ids.forEach((client_id) => {
|
||||
|
|
|
|||
|
|
@ -114,5 +114,5 @@ export const files = [
|
|||
"monaco/min/vs/editor/editor.main.nls.es.js",
|
||||
"monaco/min/vs/editor/editor.main.nls.js",
|
||||
"monaco/min/vs/editor/editor.main.nls.fr.js",
|
||||
"monaco/min/vs/loader.js",
|
||||
];
|
||||
"monaco/min/vs/loader.js"
|
||||
]
|
||||
|
|
@ -7,7 +7,8 @@ import { polyfillNode } from "esbuild-plugin-polyfill-node";
|
|||
await removeAsync(dir.path("/app/srv/core"));
|
||||
await $`bun tailwindcss -i src/nova/prod/tailwind.css -o ../srv/core/index.css`
|
||||
.cwd(dir.path(`/app/web`))
|
||||
.quiet();
|
||||
.quiet()
|
||||
.nothrow();
|
||||
|
||||
const ctx = await context({
|
||||
bundle: true,
|
||||
|
|
|
|||
Loading…
Reference in New Issue