We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We should write a piece about deploying Wasp to bare metal and/or with Docker container + docker-compose.yml
Docker
docker-compose.yml
#!/bin/bash set -e set -u set -o pipefail SERVER_APP=socialpostgpt-server CLIENT_APP=socialpostgpt-client CAPROVER_URL=https://captain.apps.twoducks.dev IS_BUILDING=false IS_DEPLOYING_SERVER=false IS_DEPLOYING_CLIENT=true if [ "$IS_BUILDING" = true ] ; then echo "Building server..." wasp build fi if [ ! -d ".wasp/build" ] ; then echo "Error: .wasp/build doesn't exist" exit 1 fi cd .wasp if [ "$IS_DEPLOYING_SERVER" = true ] ; then echo "Tar-ing server..." tar -czf server.tar.gz --exclude "node_modules" ./build/* echo "Deploying server..." caprover deploy -a $SERVER_APP -t ./server.tar.gz -u $CAPROVER_URL rm server.tar.gz fi if [ "$IS_DEPLOYING_CLIENT" = true ] ; then echo "Building client..." cd ./build/web-app REACT_APP_API_URL=https://$SERVER_APP.apps.twoducks.dev npm run build CLIENT_DOCKERFILE=$(cat <<EOF FROM pierrezemb/gostatic CMD [ "-fallback", "index.html", "-enable-logging"] COPY ./build /srv/http EOF ) echo "$CLIENT_DOCKERFILE" > ./Dockerfile echo "!build" > .dockerignore echo "Tar-ing client..." tar -czf ../../client.tar.gz --exclude "node_modules" ./* echo "Deploying client..." caprover deploy -a $CLIENT_APP -t ../../client.tar.gz -u $CAPROVER_URL rm ../../client.tar.gz fi
Writing a docker-compose.yml to run a built Wasp app should be pretty straightforward:
The text was updated successfully, but these errors were encountered:
Hey can you assign this to me ?
Sorry, something went wrong.
Hey @create-dan , sure go for it if you wish! Maybe it would be good if you presented here your plan on how you would like to approach this?
Related convo on Discord: https://discord.com/channels/686873244791210014/1159852795399249981/1159852795399249981 .
Another related convo on Discord, this one about running server without Docker but directly instead: https://discord.com/channels/686873244791210014/1171112746633400462/1171112746633400462 .
One more convo on Discord, also about running server without Docker: https://discord.com/channels/686873244791210014/1224779927505731605/1224779927505731605 .
infomiho
No branches or pull requests
We should write a piece about deploying Wasp to bare metal and/or with
Docker
container +docker-compose.yml
Using Caprover (self-hosted PaaS)
Deploy script
docker-compose.yml
Writing a
docker-compose.yml
to run a built Wasp app should be pretty straightforward:The text was updated successfully, but these errors were encountered: