What about one DB (PostgreSQL), do I need two volumes?

I initialized Fly.io and tried again.

  • Delete App and db on the dashboard
  • Delete local Dockerfile and `fly.toml
  • Run fly launch.
  • Run fly machine clone <machine-id>.

Result.

❯ fly status
App
  Name     = outdoor-heart-sutra-backend
  Owner    = personal
  Hostname = outdoor-heart-sutra-backend.fly.dev
  Image    = outdoor-heart-sutra-backend:deployment-01H2JH5NCPN0X4RV99W0D1WB9N
  Platform = machines

Machines
PROCESS	ID            	VERSION	REGION	STATE  	CHECKS	LAST UPDATED
app    	14xxxxxxx	1      	nrt   	stopped	      	2023-06-10T11:37:45Z
app    	56xxxxxxx	1      	nrt   	started	      	2023-06-10T11:44:58Z


❯ fly volumes list
ID                  	STATE  	NAME                            	SIZE	REGION	ZONE	ENCRYPTED	ATTACHED VM   	CREATED AT
vol_3q80vd3	created	outdoor_heart_sutra_backend_data	1GB 	nrt   	a588	true     	56xxxxxxx	2 minutes ago
vol_lgz1vpp	created	outdoor_heart_sutra_backend_data	1GB 	nrt   	e73c	true     	14xxxxxxx	14 minutes ago

The problem has been resolved successfully.

Thank you very much !!!

1 Like