Does anyone have a guide to installing Bolt.diy online on DigitalOcean or any other platform? Will following the same process as in the Readme file work? Which platform is best?
Also, which API is the cheapest that can be used with Bolt.diy?
Thanks!
leex279
December 17, 2024, 11:08am
2
2 Likes
leex279
December 17, 2024, 11:09am
3
API => I use OpenRouter often and the Qwen Model is pretty cheap
Other then that google provides free usage of there models. Gemini 2.0 Flash also very good and free at the moment.
3 Likes
I believe you can run docker image on digital ocean
4 Likes
Hey @leex279 thanks for this tutorial, I am currently stuck at βpnpm run build && pnpm run startβ and get the below error:
bolt@0.0.7 build /opt/bolt.diy
remix vite:build
sh: 1: remix: not found
ELIFECYCLE Command failed.
I have already did the swap file command, but nothing happens. Can you pls help ?
@jacklearner cloudflare not working at the moment with version 0.0.7 cause there is a bug.
As soon as this PR is merged, it will work again: fix: error building my application 1414 by Stijnus Β· Pull Request #1436 Β· stackblitz-labs/bolt.diy Β· GitHub
1 Like
@jacklearner the fix is now on the main branch, so you could test it out with it.
1 Like
Itβs in main branch so the process you laid out in the video as is will work right? Or do I have to do something else?
It works as shown in the video, but you need to do everything for the main branch instead of for the stable.
So delete the wranger.toml in git and in cloudflare settings choose main instead of stable branch.
1 Like
I am actually using the VPS setup tutorial, in that I have no clue how to change from stable to main, can you pls guide?
@jacklearner you can at this point, just to a git checkout main
before the build:
1 Like
Thanks @leex279 that worked, and now I am at the last step where you write now your domain should be up and running, but despite everything being exact replica of your tutorial, I see nginx bad gateway error on loading the domain (the domain loads with ssl).
you sure everything is running correctly? Just got one instance running and not 2?
Check
pm2 status
and maybe also then the logs of the instance(s)
pm2 logs
1 Like
you are right β I see 2 instances running
pm2 status
ββββββ¬ββββββββββββββ¬ββββββββββββββ¬ββββββββββ¬ββββββββββ¬βββββββββββ¬βββββββββ¬βββββββ¬ββββββββββββ¬βββββββββββ¬βββββββββββ¬βββββββββββ¬βββββββββββ
β id β name β namespace β version β mode β pid β uptime β βΊ β status β cpu β mem β user β watching β
ββββββΌββββββββββββββΌββββββββββββββΌββββββββββΌββββββββββΌβββββββββββΌβββββββββΌβββββββΌββββββββββββΌβββββββββββΌβββββββββββΌβββββββββββΌβββββββββββ€
β 0 β bolt.diy β default β N/A β fork β 7089 β 5s β 18 β online β 0% β 3.3mb β root β disabled β
β 1 β bolt.diy β default β N/A β fork β 6812 β 3m β 2 β online β 0% β 1.8mb β root β disabled β
ββββββ΄ββββββββββββββ΄ββββββββββββββ΄ββββββββββ΄ββββββββββ΄βββββββββββ΄βββββββββ΄βββββββ΄ββββββββββββ΄βββββββββββ΄βββββββββββ΄βββββββββββ΄βββββββββββ
Better post screenshots for this, but its ok for now
Then just kill the older one (0 I guess):
pm2 kill 0
pm2 save
after this you may restart your system and see if it startsup everything.
1 Like
Sure, Tx I did that and rebooted, still same issue of bad gateway.
Correction- I just checked and it was still not on main branch because I ran build first and then git main, I was to run it before build command, my bad, itβs working now. Tx a lot for the support @leex279
1 Like
Perfect, glad it works now
2 Likes