Skip to content

tjr214/cool-deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Cool-Deploy

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.

Usage

  1. 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
  1. Run cool-deploy.sh and follow the prompts to configure the script.
./cool-deploy.sh
  1. 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.

  1. If using Private Key Deployment, copy/paste the Private Key generated by the script into the Github Settings page for your App.

  2. Remember to setup DNS for the frontend and backend URLs entered during the setup process!

  3. You are done! The Wasp app should now be deployed and live on your server.

  4. If you make changes to the App and need to redeploy: just run cool-deploy.sh again, sit back and watch the magic happen.

Commit Messages

You can add a commit message to each deployment by running:

./cool-deploy.sh "My Commit Message"

Configuration Files

  • .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)

Brief Roadmap

  • 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?

About

Coolify auto-deployment script for Wasp apps.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages