We are using Render as our hosting provider for our app, and we have connected our app repository to implement a CI/CD flow within our GitHub repository.
Setting Up Environment Variables
First, set the environment variable SHOPIFY_CLI_PARTNERS_TOKEN
. You can obtain the value from your partner portal by following this guide.
Modifying Your package.json
Ensure you modify your deploy
script in the package.json
as follows:
json
"scripts": {
"shopify": "shopify",
"build": "shopify app build",
"dev": "shopify app dev",
"info": "shopify app info",
"generate": "shopify app generate",
"deploy": "shopify app deploy --reset --force"
}
Deployment Commands
Next, we run the following commands on our hosting platform:
bash
npm install -g @shopify/cli@latest
npm install
npm run deploy
Helpful Resources
We found this link to be very helpful as well.
Important Note
Make sure to create a separate app for your live store.
I hope this information helps you!