Sha256: 339251f1c7bca58be19b6314274784c2513124c88b05be1358722913ccfdc5f0

Contents?: true

Size: 683 Bytes

Versions: 5

Compression:

Stored size: 683 Bytes

Contents

#!/bin/zsh
#
# Nightly database import script for eLocal.com.

# Download the latest database from our backup server
cd /Users/tom/Code/elocal/
bundle exec thor db:import:production

# Index the new data with Solr
bundle exec thor solr:index_accounts
bundle exec thor solr:index_profiles
bundle exec thor solr:index_categories

# Send a confirmation email when everything is done
EMAIL="tubbo@psychedeli.ca"
SUBJECT="Imported the production database to playa."
MESSAGE="db:import:production has been run, and the database has been delivered to your local development machine."
echo "To: $EMAIL\nSubject:$SUBJECT\nContent-Type:text/plain;charset="us-ascii"\n\n$MESSAGE" | sendmail -t

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
zsh_dots-0.5.7 bin/elocal_nightly.sh
zsh_dots-0.5.6 bin/elocal_nightly.sh
zsh_dots-0.5.5 bin/elocal_nightly.sh
zsh_dots-0.5.4 bin/elocal_nightly.sh
zsh_dots-0.5.3 bin/elocal_nightly.sh