A simple CLI tool to setup auto deployment of Wasp Apps to Coolify. It can also setup and deploy Production and Development PostgreSQL databases on Coolify for each App.
- Download the
cool-deploy.sh
script from this repo.
curl -fsSL -o cool-deploy.sh https://github.com/tjr214/cool-deploy/raw/main/cool-deploy.sh
- Run
cool-deploy.sh
and follow the prompts to configure the script.
./cool-deploy.sh
- There are currently 3 ways to deploy your Wasp App to Coolify:
- Git Repo Private Key Deployment (Recommended)
- Private GitHub App (NOT CURRENTLY WORKING!!!)
- Public GitHub Repository
The script will prompt you to select which method to use and will walk you through the process.
-
If using Private Key Deployment, copy/paste the Private Key generated by the script into the Github Settings page for your App.
-
Remember to setup DNS for the frontend and backend URLs entered during the setup process!
-
You are done! The Wasp app should now be deployed and live on your server.
-
If you make changes to the App and need to redeploy: just run
cool-deploy.sh
again, sit back and watch the magic happen.
You can add a commit message to each deployment by running:
./cool-deploy.sh "My Commit Message"
.env.coolify
(stores settings related to Coolify; generated by Cool-Deploy).env.client
(custom client env variables; used by both Wasp and Cool-Deploy).env.server
(custom server env variables; shared by both Wasp and Cool-Deploy)
-
Add support for custom Client-side environment variables -
Add support for custom Server-side environment variables - Setup and deploy a Plausible Analytics server on Coolify for OpenSaaS
- Add command line options to control script a bit
- Let script spin up and spin down the dev dB on Coolify via command line options
- Add support for OpenSaaS 2.0 Blog and Deployments
- Maybe some cool little ASCII Art?