Skip to content

Commit

Permalink
Update deploy.sh to reflect new data handling.
Browse files Browse the repository at this point in the history
* The database is now called tiddlyspace2
* For now we must use DELETE IGNORE until
  tiddlyweb/tiddlywebplugins.sqlalchemy#2
  is fixed.
  • Loading branch information
cdent committed Mar 26, 2012
1 parent 7ff1650 commit bc3c404
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions deploy.sh
Expand Up @@ -26,17 +26,12 @@ if [ -n "$1" ]; then
fi

host="${log_name}${host}"
sql="DELETE FROM revision WHERE bag_name='system' OR bag_name='tiddlyspace' \
OR bag_name='system-plugins_public' \
OR bag_name='system-info_public' \
OR bag_name='system-images_public' \
OR bag_name='system-theme_public'; \
DELETE FROM tiddler WHERE bag_name='system' OR bag_name='tiddlyspace' \
OR bag_name='system-plugins_public' \
OR bag_name='system-info_public' \
OR bag_name='system-images_public' \
OR bag_name='system-theme_public';"
sql="DELETE IGNORE FROM tiddler WHERE bag='system' OR bag='tiddlyspace' \
OR bag='system-plugins_public' \
OR bag='system-info_public' \
OR bag='system-images_public' \
OR bag='system-theme_public';"
ssh $host "sudo pip install --upgrade $pip_options $package_name && " \
"mysql -u tiddlyweb tiddlyspace -e \"${sql}\" && " \
"mysql -u tiddlyweb tiddlyspace2 -e \"${sql}\" && " \
"cd $instance_dir && sudo -u $remote_sudo_id twanager update && " \
"sudo apache2ctl restart && echo INFO: deployment complete"

0 comments on commit bc3c404

Please sign in to comment.