diff --git a/.env_example b/.env_example index e5c8781df..3caafb483 100644 --- a/.env_example +++ b/.env_example @@ -11,12 +11,6 @@ DEV_SERVER_COMFYUI_URL=http://127.0.0.1:8188 # and public addresses. VITE_REMOTE_DEV=false -# The target ComfyUI checkout directory to deploy the frontend code to. -# The dist directory will be copied to {DEPLOY_COMFYUI_DIR}/custom_web_versions/main/dev -# Add `--front-end-root {DEPLOY_COMFYUI_DIR}/custom_web_versions/main/dev` -# to ComfyUI launch script to serve the custom web version. -DEPLOY_COMFYUI_DIR=/home/ComfyUI/web - # The directory containing the ComfyUI installation used to run Playwright tests. # If you aren't using a separate install for testing, point this to your regular install. TEST_COMFYUI_DIR=/home/ComfyUI diff --git a/README.md b/README.md index a6d6bea1f..c47f0192b 100644 --- a/README.md +++ b/README.md @@ -661,8 +661,3 @@ This will make the new language selectable in the application's settings. Start the development server, switch to the new language, and verify the translations. You can switch languages by opening the ComfyUI Settings and selecting from the `ComfyUI > Locale` dropdown box. - -## Deploy - -- Option 1: Set `DEPLOY_COMFYUI_DIR` in `.env` and run `npm run deploy`. -- Option 2: Copy everything under `dist/` to `ComfyUI/web/` in your ComfyUI checkout manually. diff --git a/package.json b/package.json index a21b2e1e4..3b170e21b 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,6 @@ "dev:electron": "vite --config vite.electron.config.mts", "build": "npm run typecheck && vite build", "build:types": "vite build --config vite.types.config.mts && node scripts/prepare-types.js", - "deploy": "npm run build && node scripts/deploy.js", "release": "node scripts/release.js", "update-litegraph": "node scripts/update-litegraph.js", "zipdist": "node scripts/zipdist.js", diff --git a/scripts/deploy.js b/scripts/deploy.js deleted file mode 100644 index 5d77e7ae6..000000000 --- a/scripts/deploy.js +++ /dev/null @@ -1,16 +0,0 @@ -import { config } from 'dotenv' -import { copy } from 'fs-extra' - -config() - -const sourceDir = './dist' -// eslint-disable-next-line no-undef -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) - })