Skip to content

WMInfoTech/vagrant-mdid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vagrant-mdid

A vagrant box that sets up MDID is a method very similar to how we use it in production.

Use

  1. Clone this repository and submodules git clone --recursive https://github.com/WMInfoTech/vagrant-mdid.git
  2. vagrant up (If you encounter any issues here, run vagrant provision to clean them up)
  3. vagrant ssh
  4. cd /vagrant/rooibos
  5. virtualenv venv
  6. source venv/bin/activate
  7. pip install -r requirements.txt
  8. python rooibos/manage.py syncdb (Answer yes and create new users as you go)
  9. python rooibos/manage.py migrate
  10. pip install gunicorn (This isn't in requirements.txt since you can pick from any WSGI server you like)
  11. gunicorn rooibos.wsgi:application -w 5 -t 180 --log-file -
  12. Things should be up and running, visit http://localhost:8080

Managing Storage

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).

Known Issues

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.

About

Vagrant machine for testing MDID3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published