mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-04 07:00:23 +00:00
Add deploy script (#96)
This commit is contained in:
14
scripts/deploy.js
Normal file
14
scripts/deploy.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import { copy } from 'fs-extra';
|
||||
import { config } from "dotenv";
|
||||
config();
|
||||
|
||||
const sourceDir = './dist';
|
||||
const targetDir = process.env.DEPLOY_COMFYUI_DIR;
|
||||
|
||||
copy(sourceDir, targetDir)
|
||||
.then(() => {
|
||||
console.log(`Directory copied successfully! ${sourceDir} -> ${targetDir}`);
|
||||
})
|
||||
.catch((err) => {
|
||||
console.error('Error copying directory:', err);
|
||||
});
|
||||
Reference in New Issue
Block a user