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!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
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
, andreadlink
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:
- Bobby