-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error building my application #1414
Comments
Try running app with |
My need is really this, to build my application and make it available on my VPS. I did this with version Any help? |
I also faced this issue, please help me. |
I'm going to do some new experiments today, including setting up the Wrangler to see if it works. |
but the "child-process" is used in more files and removing these files will break features. |
@Stijnus @xKevIsDev @thecodacus Can we replace this child-process thing with something other or make it more optional to make the cloudflare/VPS deployment work again? |
@leex279 , I have removed patch api.deploy.ts 104-109
to
but now I have another issue |
could you test : #1436 |
@morningxm yeah, got the same with the PR from @Stijnus. But I am confident he will find a solution for this as well :) |
Hi, just for reference, I was able to run production via PR #1436. This change effectively resolved my issue without needing to run in dev mode. Here's the detailed process description:I simply pulled the latest released version v0.0.7: git clone https://github.com/stackblitz-labs/bolt.diy.git -b v0.0.7 --depth 1 Then, I built it directly: docker build -t bolt-ai:production -t bolt-ai:latest --target bolt-ai-production . Next, I ran it using compose: cp .env.example .env.local
docker compose --profile production up Then I encountered the following error related to
At this point, the only solution was to rebuild the development version. However, with the latest PR #1436, I was able to follow the steps above again and successfully run it directly: ❯ docker compose --profile production up
[+] Running 1/1
✔ Container boltdiy-app-prod-1 Recreated 0.1s
Attaching to app-prod-1
app-prod-1 |
app-prod-1 | > [email protected] dockerstart /app
app-prod-1 | > bindings=$(./bindings.sh) && wrangler pages dev ./build/client $bindings --ip 0.0.0.0 --port 5173 --no-show-interactive-dev-session
app-prod-1 |
app-prod-1 |
app-prod-1 | ⛅️ wrangler 3.108.0
app-prod-1 | --------------------
app-prod-1 |
app-prod-1 | ✨ Compiled Worker successfully
app-prod-1 | Your Worker and resources are simulated locally via Miniflare. For more information, see: https://developers.cloudflare.com/workers/testing/local-development.
app-prod-1 |
app-prod-1 | Your worker has access to the following bindings:
app-prod-1 | - Vars:
app-prod-1 | - RUNNING_IN_DOCKER: "(hidden)"
app-prod-1 | - DEFAULT_NUM_CTX: "(hidden)"
app-prod-1 | [wrangler:inf] Ready on http://0.0.0.0:5173
app-prod-1 | [wrangler:inf] - http://127.0.0.1:5173
app-prod-1 | ⎔ Starting local server... Overall, in my test case, this PR works! |
Describe the bug
Link to the Bolt URL that caused the error
https://github.com/stackblitz-labs/bolt.diy/releases/tag/v0.0.7
Steps to reproduce
pnpm run build && pnpm run start
Expected behavior
Complete build
Screen Recording / Screenshot
No response
Platform
Provider Used
No response
Model Used
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: