Workflow for Remix App hosted on fly.io

Hi

I am developing a public Remix App for Shopify App Market. I am using fly.io for hosting the app.

I submitted the app for review and I got a reply that I need to fix some things and resubmit.

How to continue the development locally? If I run shopify app dev, it will overwrite URLs in the App Configuration on partners page and application_url in shopify.app.toml

So after I make the changees, I need to restore the fly.io URLs in app configuration and in the .toml, then deploy the app to fly.io, then submit for review? Do I need to run shopify app deploy before or after fly deploy?

What happens when the app is in production, and I run shopify app dev and update the URLs? Will this break the app for users that have it installed?

What is the recommended workflow for local development and publishing new versions, for public app that is hosted on fly.io?

Thanks

Hi @zalc

You can pass the --config option to the Shopify CLI as a way of defining a different shopify.app.toml file.

For example, I like to have multiple .toml files with one per environment.

This way I can use the --config flag to publish on production vs development:

shopify app deploy --config shopify.app.production.toml

You should have a separate development app from your production app, so that way you can maintain two different installation URLs, etc.

Thanks.
I found that I can create a new dev app that will use the same code base, and new app config, with
shopify app config link and selecting “create new app”.
Then shopify app dev will run the new (dev) app, using the same code base.
To update the production app on fly.io, I run fly deploy, no need to switch the config.