changedetection/start.sh
2019-10-23 16:20:00 +01:00

9 lines
359 B
Bash

#!/bin/sh
set -ex
eval "$(aws ssm get-parameters-by-path --region $REGION --path "/$SERVICE_NAME/$ENV/" --query 'Parameters[*].{Name:Name,Value:Value}' --output text | sed 's/\/'"$SERVICE_NAME"'\/'"$ENV"'\///g' | awk -F '\t' '{ print "export " $1 "=" "\""$2"\";" }')"
npm show puppeteer version
pm2-runtime start ecosystem.config.js --raw --env production