#!/bin/sh

# Kick off the exercise icon scraping process
#
# NOTE: before running this you must create a file called 'secrets.sh'
# in this directory, with the following content:
#    S3_KEY=<key>
#    S3_SECRET=<secret>
#    S3_BUCKET=<bucket>

cd $HOME/exercise-icons

. ./secrets.sh
export S3_KEY S3_SECRET S3_BUCKET

# We need to make sure we pick up the right versions of casperjs and phantomjs.
export PATH="$PWD/node_modules/casperjs/bin:$PWD/node_modules/phantomjs/bin:$PATH"

# Prepend  DEBUG=* on the line below for more verbosity
./bin/capture.js --upload --all --parallel 1

#!/bin/sh

# Kick off the exercise icon scraping process
#
# NOTE: before running this you must create a file called 'secrets.sh'
# in this directory, with the following content:
#    S3_KEY=<key>
#    S3_SECRET=<secret>
#    S3_BUCKET=<bucket>

cd $HOME/exercise-icons

. ./secrets.sh
export S3_KEY S3_SECRET S3_BUCKET

# We need to make sure we pick up the right versions of casperjs and phantomjs.
export PATH="$PWD/node_modules/casperjs/bin:$PWD/node_modules/phantomjs/bin:$PATH"

echo
echo ---------------------------------------------------------------------
echo Starting capture.js run at `date`
echo ---------------------------------------------------------------------

# Prepend  DEBUG=* on the line below for more verbosity
./bin/capture.js --upload --all --parallel 1

Print a banner every time we start a new run, to make it easier to tell (in the logs).
Print a banner every time we start a new run, to make it easier to
tell (in the logs).

Auditors: chris

Test plan:
Ran the commands manually.
