Add fabric bundle for 'theo-server'
This commit is contained in:
parent
9e275a35f8
commit
a26e3088c5
23 changed files with 1032 additions and 0 deletions
34
machines/theo-server/deploy/theo-common/overnight.sh.mako
Executable file
34
machines/theo-server/deploy/theo-common/overnight.sh.mako
Executable file
|
@ -0,0 +1,34 @@
|
|||
#!/bin/sh -e
|
||||
<%text>############################################################</%text>
|
||||
#
|
||||
# overnight automation for Theo
|
||||
#
|
||||
<%text>############################################################</%text>
|
||||
|
||||
if [ "$1" = "--verbose" ]; then
|
||||
VERBOSE='--verbose'
|
||||
PROGRESS='--progress'
|
||||
else
|
||||
VERBOSE=
|
||||
PROGRESS=
|
||||
fi
|
||||
|
||||
cd ${envroot}
|
||||
|
||||
RATTAIL="bin/rattail --config=app/cron.conf $PROGRESS"
|
||||
|
||||
|
||||
<%text>##############################</%text>
|
||||
# sync data
|
||||
<%text>##############################</%text>
|
||||
|
||||
% if env.theo_integrates_with == 'corepos':
|
||||
# CORE-POS -> Theo
|
||||
$RATTAIL --runas corepos import-corepos-api --delete
|
||||
% elif env.theo_integrates_with == 'catapult':
|
||||
# Catapult -> Theo
|
||||
$RATTAIL --runas catapult import-catapult --delete
|
||||
% endif
|
||||
|
||||
# make sure version data is correct
|
||||
$RATTAIL --runas theo import-versions --delete --dry-run --warnings
|
Loading…
Add table
Add a link
Reference in a new issue