Copy existing app from REST call.

I deploy a new app for each user that signs up for my service. Currently users sign up via an Airtable Form. I then do the following manually:

  1. Create a new folder on my local machine.
  2. Copy a .toml file into that folder with the proper config options.
  3. run a fly launch / deploy.
  4. Go to the console and add a certificate, so I can use a custom domain.

I’d like to be able to write a script that does all of this… but I’m struggling to understand my options here. The script would ideally run inside Airtable scripts and be a single or multiple REST api calls? I was thinking to simplify things I could just copy an existing app on Fly that serves as a template? Or does the API not support this and I need to host a virtual machine somewhere to be able to have a filesystem and manage the .toml files? I looked into trying to launch an app without a toml file but I don’t think there is a one-to-one mapping of the available flags on the fly launch command and what I have in my toml file. So I’m not sure how to replicate it through the command line only.

Is this even possible? And if so what route would be best to take?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.