commit 33c0ad7d14a85f22c57f943dab58610c13d2ac07 Author: Nicholas Koben Kao <kobenkao@gmail.com> Date: Tue Jan 30 21:56:00 2024 -0800 revert custom form change commit d2905ad045ad7856156e3647a81d642999352de7 Merge: 654423d e3a1d24 Author: Nicholas Koben Kao <kobenkao@gmail.com> Date: Tue Jan 30 20:50:06 2024 -0800 merge schema commit 654423d597e019a5ebf1ab6568c9942fcb9181c5 Author: Nicholas Koben Kao <kobenkao@gmail.com> Date: Tue Jan 30 20:49:34 2024 -0800 merge confl.ict commit 641724c11346319674fbb329e8e29b362117c242 Author: Nicholas Koben Kao <kobenkao@gmail.com> Date: Tue Jan 30 20:47:34 2024 -0800 model reload on create commit eb4dfe8e3f39a0a98eab0fcf1affe7096c12f33b Author: Nicholas Koben Kao <kobenkao@gmail.com> Date: Tue Jan 30 17:00:03 2024 -0800 delete models commit 0bea9583fada102396c4e08fe6da971c94d404df Author: Nicholas Koben Kao <kobenkao@gmail.com> Date: Tue Jan 30 14:35:15 2024 -0800 deploy volume uploader to have timeouts only be modal related
Modal Builder
This is a standalone docker fast api app that will takes in require snapshot of the machine and build it as a new modal apps and returns back the deployment url.
Environment variable, get it from you modal accounts
MODAL_TOKEN_ID=
MODAL_TOKEN_SECRET=
To run locally
docker build -t bennykok/comfydeploy-builder:dev . && docker run --env-file .env -p 8080:8080 bennykok/comfydeploy-builder:dev
Before Deploy to Fly.io
Fly.io installation
Mac/Liunx
If you have the Homebrew package manager installed
brew install flyctl // mac only
If not, you can run the install script
curl -L https://fly.io/install.sh | sh
Window
Run the PowerShell install script
pwsh -Command "iwr https://fly.io/install.ps1 -useb | iex"
Set Env Key into Fly.io
fly secrets set MODAL_TOKEN_ID=
fly secrets set MODAL_TOKEN_SECRET=
To deploy
We have 2 toml
files one for production
and the other for staging
it will default to staging
if you don't include the -c
flag to choose your config file
// model-builder/fly.toml
app = <APP_NAME>
if you're first time deploy, run this
fly launch
if not, run this instead
fly deploy -c "toml file"