vhostm improves on the old spinup tool significantly. The new vhostm tool is organized more modularly and version 1.0 stores data in its own config file so it can be viewed and manipulated more simply. Here is a brief overview of the new tool:
bash
$ sudo pip install vhostm
$ sudo vhostm add -d test.com -p 3000 -s ./static
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful
Performing sanity check on nginx configuration:
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful
$ sudo vhostm list
Domain | Address:Port | Static Root
test.com | 127.0.0.1:3000 | /usr/home/phil/projects/personal/vhostm/static
$ sudo vhostm del -d test.com
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful
Performing sanity check on nginx configuration:
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful
$ sudo vhostm list
Domain | Address:Port | Static Root