DigitalOcean Droplet Deployment #33
itsrishabh
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
@itsrishabh |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey @Vinlic great repo, I'm using this for a video-generation app I'm working that takes in automated news data and spits out generated videos using a headless chrome instance along with some data cleanup. Initially I built my own solution using puppeteer and puppeteer-video-recorder, though it was hacky at best.
I spent the last 2-3 days figuring out how to get this working on a DigitalOcean droplet using Ubuntu and an AMD architecture, figured it'd be helpful for others who might want to do the same.
Patch the current codebase
Hear me out, the current codebase is great, but I did have to patch a few things in order to get both the build and development server working on DO (and eventually Docker):
I created a few patches but this is all I've patched:
Install FFMPEG/FFPROBE/CHROME on DigitalOcean separately and source appropriately in your app
Sample .env file for my Mac
Sample .env file for DigitalOcean
This lets me call these executable paths for my needs ie:
I turned off browserUseGPU since the virtual GPU is not great from DO.
Add a Chrome kill process function
Anyways, then I just ran
pnpm build && pnpm start
and it worked perfectly.Beta Was this translation helpful? Give feedback.
All reactions