DataJet
  • Welcome to DataJet
  • Scripts
    • Introduction
    • Scripts
      • Input
      • HTTP
      • Scheduled
      • Event
      • Shipping Rate
      • Email
    • Creating a custom script
  • Liquid
    • Introduction
    • Tags
      • exit
      • function
      • json
      • push
      • run
    • Filters
      • array_difference
      • array_equal
      • array_intersection
      • array_symmetric_difference
      • base64_decode
      • base64_encode
      • concat
      • content
      • email
      • encode_uri
      • file
        • multipart
        • url
        • content
      • find
      • find_exp
      • flat
      • flow
      • flow_v2
      • ftp
      • graphql
      • group_by
      • group_by_exp
      • hmac_sha256
      • http
      • in_groups_of
      • in_timezone
      • log
      • parse_json
      • parse_csv
      • parse_xml
      • pop
      • push
      • random
      • remove_prop
      • rest
      • run
      • sha1
      • sum
      • time_add
      • time_subtract
      • type
      • where_exp
  • Misc
    • Credits and usage
    • GitHub Integration
      • Track changes in a script's source code
      • Connect development stores with development branches
      • Use one codebase across multiple Shopify stores
    • Functions
    • Variables
    • Shopify Flow Integration
      • V1
      • V2
    • Processing user submitted forms
Powered by GitBook
On this page
  1. Misc
  2. GitHub Integration

Use one codebase across multiple Shopify stores

The GitHub repository might be connected to multiple DataJet apps installed on multiple Shopify stores.

Let's assume you have a repository with a file named webhook/order-created.dj and two Shopify stores:

  • Store AU

  • Store NZ

You can connect DataJet on both stores to a single GitHub repository. For each store, create a webhook script: order-created.dj and connect it to the same webhook/order-created.dj file. Now, anytime you push changes to your webhook/order-created.dj file, both stores will be updated automatically. Similarly, if you update your script through the DataJet Developer Console on Store AU, Store NZ will be updated as well.

PreviousConnect development stores with development branchesNextFunctions

Last updated 3 months ago