From e3dd09f8fc6f2cab4e0aad7dee41484430fe230b Mon Sep 17 00:00:00 2001 From: rajbot Date: Tue, 4 Feb 2014 13:06:32 -0800 Subject: [PATCH] Add Vagrantfile --- .gitignore | 2 + README.md | 20 ++++++++ Vagrantfile | 137 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 159 insertions(+) create mode 100644 Vagrantfile diff --git a/.gitignore b/.gitignore index 3979206a..7c9e4a8a 100644 --- a/.gitignore +++ b/.gitignore @@ -37,3 +37,5 @@ nosetests.xml # Other globalwb.py + +.vagrant diff --git a/README.md b/README.md index da31f1f9..0a5c354e 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,26 @@ If everything worked, the following pages should be loading (served from *sample | `http://iana.org` | [http://localhost:8080/pywb/iana.org](http://localhost:8080/pywb/iana.org) | [http://localhost:8080/pywb/*/iana.org](http://localhost:8080/pywb/*/iana.org) | +### Vagrant + +pywb comes with a Vagrantfile to help you set up a VM quickly for testing. +If you have [Vagrant](http://www.vagrantup.com/) and [VirtualBox](https://www.virtualbox.org/) +set up, then you can start a test instance of pywb like so: + +```bash +git clone https://github.com/ikreymer/pywb.git +cd pywb +vagrant up +``` + +After all the components of pywb are installed, the uwsgi server will start and you should see: + +``` +spawned uWSGI worker 1 (and the only) (pid: 123, cores: 1) +``` + +At this point, you can open a web browser and navigate to http://localhost:8080 for testing. + ### Automated Tests diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 00000000..5bd21e51 --- /dev/null +++ b/Vagrantfile @@ -0,0 +1,137 @@ +# -*- mode: ruby -*- +# vi: set ft=ruby : + +$script = <