Guide to Install Bolt.diy online on DigitalOcean or any other platform?

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!

Hi @gfit.create,

take a look here: Deploying Bolt.diy with Cloudflare Pages (the easy way!)

2 Likes

API => I use OpenRouter often and the Qwen Model is pretty cheap
image

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 :smiley:

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 :slight_smile: 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 :slight_smile:

2 Likes