hburgund/roundware-server — pull request #85 by eosrei (2014-06-18 02:40:07+00:00)
Title: Initial working live/dev environments with Vagrant

The initial working version of an install.sh to create dual dev/live environments for use with a production server or a Vagrant VirtualBox virtual machine. Roundware runs on Apache2 with mod_wsgi using a virtual environment for production systems or manage.py runserver for local development VMs. The virtual environment is pre-configured for use by the roundware or vagrant user.

This configuration makes it possible to edit and work with git on your host computer's clone of the repository, while the changes are reflected every page refresh at http://127.0.0.1:8888/

The relevant changed directories/files:
* /home/roundware/roundware-server/ - The development code for non-Vagrant installs.
* /home/vagrant/roundware-server/ - The development code for Vagrant installs.
* /var/www/roundware - The Python virtual environment
* /var/www/roundware/source - The production code
* /var/www/roundware/static - The shared Django static directory
* /var/www/roundware/rwmedia - The shared Roundware media directory

To test:

user@local-machine:~ $ git clone https://github.com/eosrei/roundware-server.git
user@local-machine:~ $ cd roundware-server
user@local-machine:~/roundware-server $ git checkout install-directories
user@local-machine:~/roundware-server $ vagrant up
user@local-machine:~/roundware-server $ vagrant ssh
(roundware)vagrant@roundware-server:~$ ./runserver.sh

Then go to: http://127.0.0.1:8888/roundware/?operation=request_stream&session_id=2891