New Shopify Certification now available: Liquid Storefronts for Theme Developers

Once shopify app is in production and How to test after that in dev environment

Mohit_garg
Shopify Partner
15 0 1

I have deployed my shopify app on heroku and updated app url and redirection url in partners dashboard now after testing I found some bugs on it so now I have to change app url and redirection to my local host (ngrok) again to fix these bugs and then for testing I have to change it to heroku. Is there any way I can do both without changing urls because It is hard to change url's again and again for testing and bug fixing. 

Replies 5 (5)
Mohit_garg
Shopify Partner
15 0 1
tobebuilds
Shopify Partner
151 9 50

The easiest option is to create 2 separate apps: one for production, one for development. You need to make sure to turn off the option for automatically overwriting the app's redirect URL's in the Shopify CLI, whenever you're working on the production app. Use the command `npm run dev -- --reset` to change the settings.

Founder / Developer, Regios Technologies, Inc.
Install my automatic discounts app
DM me for custom app development and consulting.
krish115
Shopify Partner
26 0 5

Hii @Mohit_garg , can you help me in, how to deploy the app and also how to generate the build for the created shopify app. Its on cloudflare still.

Mohit_garg
Shopify Partner
15 0 1
tewe
Shopify Partner
241 46 102

Hi @Mohit_garg ,

 

what I do is to have a second app registered in the partners dashboard: a duplication of the production app. Any new releases just pushes the second app to production whenever a bug is fixed. So I do not have to change any urls. Hope this helps.

 

Regards

Thomas

• Was my reply helpful? Click Like to let me know!
• Was your question answered? Mark it as an Accepted Solution
• Check out our Price Updater App