Hey all,
I’ve been working with the Wasp community extensively, but no one I’ve been able to get in contact with has hosted with DO before. I personally favor DO and really would like to get my hosting configuration setup.
I’m having issues building and deploying my application. I can build it but it is stuck in the build phase using the commands below in the Build Command.
curl -sSL https://get.wasp-lang.dev/installer.sh | sh
wasp completion
wasp db migrate-dev
wasp start
When running wasp start
in the Run Command, it throws the errors below:
[2025-03-12 20:28:05] /layers/heroku_nodejs/profile/profile.d/WEB_CONCURRENCY.sh: line 35: cat: command not found
[2025-03-12 20:28:05] /layers/heroku_nodejs/profile/profile.d/WEB_CONCURRENCY.sh: line 35: / 1048576: syntax error: operand expected (error token is "/ 1048576")
[2025-03-12 20:28:05] /layers/heroku_nodejs/profile/profile.d/cnb_shim_symlink.sh: line 1: readlink: command not found
[2025-03-12 20:28:05] /layers/heroku_nodejs/profile/profile.d/cnb_shim_symlink.sh: line 1: readlink: command not found
[2025-03-12 20:28:05] /cnb/lifecycle/launcher: line 4: exec: bash: not found
When running wasp start locally it runs fine, and technically runs fine in the build command.
Now, there is documentation for deploying Wasp to a VPS which is different than this. I realize I may need to use wasp build
along with defining some different ENV parameters. However before digging deeper into that, I want to get some feedback from the DO community to see if anyone can help me utilize the App Platform as I find it extremely convenient.
Here is the documentation for deploying Wasp to a VPS: https://gist.github.com/infomiho/80f3f50346566e39db56c5e57fefa1fe
I do have a managed PostGre DB setup within the app on Digital Ocean, and that connection is working fine. Any help is appreciated, this has been a frustrating week :D
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hey there 👋
The App Platform is great, but it’s a bit more limited when it comes to full custom environments like the one Wasp expects.
From the errors you’re seeing (bash
, cat
, and readlink
not found), it looks like the buildpack/App Platform runtime doesn’t have some essential tools Wasp needs. App Platform containers are minimal and don’t always include these out of the box.
You should try using a Dockerfile instead of Build & Run commands. That way you control the environment and make sure everything Wasp needs is available:
https://docs.digitalocean.com/products/app-platform/reference/dockerfile/
- Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.