new script runs brozzler-new-site queues a new site to brozzle on the vagrant brozzler deployment

This commit is contained in:
Noah Levitt 2016-09-16 16:35:44 -07:00
parent 38af0f347b
commit 253122d061
2 changed files with 15 additions and 1 deletions

View File

@ -32,7 +32,7 @@ def find_package_data(package):
setuptools.setup(
name='brozzler',
version='1.1b6.dev82',
version='1.1b6.dev83',
description='Distributed web crawling with browsers',
url='https://github.com/internetarchive/brozzler',
author='Noah Levitt',

View File

@ -0,0 +1,14 @@
#!/bin/bash
#
# vagrant-brozzler-new-site.sh - run brozzler-new-site inside the vagrant vm to
# queue a job for your vagrant brozzler deployment
#
# cd to path with Vagrantfile so "vagrant ssh" knows what to do
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd $script_dir
vagrant ssh -- \
PYTHONPATH=/home/vagrant/brozzler-ve34/lib/python3.4/site-packages \
/home/vagrant/brozzler-ve34/bin/python \
/home/vagrant/brozzler-ve34/bin/brozzler-new-site "$@"