obdfcascrape/start.sh

9 lines
359 B
Bash
Raw Permalink Normal View History

2019-05-05 19:13:56 +00:00
#!/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