Created
February 18, 2026 10:38
-
-
Save drblue/c33a048986a2f79562fff52eb955a3c9 to your computer and use it in GitHub Desktop.
Heroku build
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Save the current directory | |
| current_dir=$(pwd) | |
| # Say hi to the user | |
| echo "π·π»ββοΈ Hello! I'm your friendly contractor Byggare Bob and I'll be building your project. Let's get started!" | |
| # Build the backend | |
| echo "π¨ Building the backend..." | |
| cd "$current_dir/backend" | |
| npm run build | |
| echo "β Backend built successfully!" | |
| # Build the frontend | |
| echo "π¨ Building the frontend..." | |
| cd "$current_dir/frontend" | |
| npm run build | |
| echo "β Frontend built successfully!" | |
| # Copy the Prisma query engine to the backend dist folder | |
| echo "π¦ Copying Prisma query engine to the backend dist folder..." | |
| cp "$current_dir/backend/generated/prisma/libquery_engine-debian-openssl-3.0.x.so.node" "$current_dir/backend/dist" | |
| echo "β Prisma query engine copied successfully!" | |
| # Return to the original directory | |
| cd "$current_dir" | |
| echo "π All done! Your project has been built successfully. You can now run the backend which serves the frontend. Have a great day! π·π»ββοΈ" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment