add a note and change so that by default it uses preview toml file
This commit is contained in:
		
							parent
							
								
									dd0af2a3e9
								
							
						
					
					
						commit
						2a55b20887
					
				@ -16,7 +16,6 @@ docker build -t bennykok/comfydeploy-builder:dev . && docker run --env-file .env
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## Before Deploy to Fly.io
 | 
			
		||||
there are 2 `toml` files one is for `preview` and the other is for `prod`
 | 
			
		||||
## Fly.io installation
 | 
			
		||||
 | 
			
		||||
### Mac/Liunx
 | 
			
		||||
@ -43,6 +42,9 @@ 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>
 | 
			
		||||
 | 
			
		||||
@ -1,10 +1,10 @@
 | 
			
		||||
# fly.toml app configuration file generated for modal-builder-preview on 2024-01-25T09:26:31Z
 | 
			
		||||
# fly.toml app configuration file generated for modal-builder on 2024-01-03T22:29:34+08:00
 | 
			
		||||
#
 | 
			
		||||
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
app = 'modal-builder-preview'
 | 
			
		||||
primary_region = 'sea'
 | 
			
		||||
app = "modal-builder"
 | 
			
		||||
primary_region = "sea"
 | 
			
		||||
 | 
			
		||||
[build]
 | 
			
		||||
 | 
			
		||||
@ -14,9 +14,4 @@ primary_region = 'sea'
 | 
			
		||||
  auto_stop_machines = true
 | 
			
		||||
  auto_start_machines = true
 | 
			
		||||
  min_machines_running = 0
 | 
			
		||||
  processes = ['app']
 | 
			
		||||
 | 
			
		||||
[[vm]]
 | 
			
		||||
  cpu_kind = 'shared'
 | 
			
		||||
  cpus = 1
 | 
			
		||||
  memory_mb = 1024
 | 
			
		||||
  processes = ["app"]
 | 
			
		||||
@ -1,10 +1,10 @@
 | 
			
		||||
# fly.toml app configuration file generated for modal-builder on 2024-01-03T22:29:34+08:00
 | 
			
		||||
# fly.toml app configuration file generated for modal-builder-preview on 2024-01-25T09:26:31Z
 | 
			
		||||
#
 | 
			
		||||
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
app = "modal-builder"
 | 
			
		||||
primary_region = "sea"
 | 
			
		||||
app = 'modal-builder-preview'
 | 
			
		||||
primary_region = 'sea'
 | 
			
		||||
 | 
			
		||||
[build]
 | 
			
		||||
 | 
			
		||||
@ -14,4 +14,9 @@ primary_region = "sea"
 | 
			
		||||
  auto_stop_machines = true
 | 
			
		||||
  auto_start_machines = true
 | 
			
		||||
  min_machines_running = 0
 | 
			
		||||
  processes = ["app"]
 | 
			
		||||
  processes = ['app']
 | 
			
		||||
 | 
			
		||||
[[vm]]
 | 
			
		||||
  cpu_kind = 'shared'
 | 
			
		||||
  cpus = 1
 | 
			
		||||
  memory_mb = 1024
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user