A vagrant box that sets up MDID is a method very similar to how we use it in production.
- Clone this repository and submodules
git clone --recursive https://github.com/WMInfoTech/vagrant-mdid.git vagrant up(If you encounter any issues here, runvagrant provisionto clean them up)vagrant sshcd /vagrant/rooibosvirtualenv venvsource venv/bin/activatepip install -r requirements.txtpython rooibos/manage.py syncdb(Answer yes and create new users as you go)python rooibos/manage.py migratepip install gunicorn(This isn't in requirements.txt since you can pick from any WSGI server you like)gunicorn rooibos.wsgi:application -w 5 -t 180 --log-file -- Things should be up and running, visit http://localhost:8080
Using local storage, a base path is pre-configured in nginx to exist at
/vagrant/rooibos/uploads. The URL base should be
http://localhost:8080/uploads/%(filename).
When creating storage and collections, the site will redirect to
http://localhost/... insted of localhost:8080. The form submission is being
handled correctly. Manually changing the URL to include the :8080 seems
to fix things.