2024-10-28 07:32:31 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -u
|
|
|
|
if [ -n "$CERC_SCRIPT_DEBUG" ]; then
|
|
|
|
set -x
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "Shopify GraphQL URL: $CERC_SHOPIFY_GRAPHQL_URL"
|
|
|
|
echo "Shopify access token: $CERC_SHOPIFY_ACCESS_TOKEN"
|
|
|
|
echo "Fetch order delay: $CERC_FETCH_ORDER_DELAY"
|
|
|
|
echo "Faucet URL: $CERC_FAUCET_URL"
|
|
|
|
echo "Number of line items per order: $CERC_ITEMS_PER_ORDER"
|
|
|
|
|
|
|
|
export SHOPIFY_GRAPHQL_URL=$CERC_SHOPIFY_GRAPHQL_URL
|
|
|
|
export SHOPIFY_ACCESS_TOKEN=$CERC_SHOPIFY_ACCESS_TOKEN
|
|
|
|
export FETCH_ORDER_DELAY=$CERC_FETCH_ORDER_DELAY
|
|
|
|
export FAUCET_URL=$CERC_FAUCET_URL
|
|
|
|
export ITEMS_PER_ORDER=$CERC_ITEMS_PER_ORDER
|
|
|
|
|
2024-10-30 05:00:17 +00:00
|
|
|
yarn start
|