Skip to content

debugging

Dan Bottomly edited this page Jul 28, 2015 · 4 revisions

Debugging/updating a HitWalker2 Vagrant installation (Linux/Mac)

Debugging

  • To run HitWalker2 in debugging mode go to the directory containing your Vagrant file and type vagrant ssh.
  • Go to the toplevel HitWalker2 directory cd ~/HitWalker2
  • Type python manage.py runserver.

As both Gunicorn and the Django developement server use port 8000 you should then be able to navigate to http:/{vagrant-ip}/HitWalker2/ in your browser as usual.

Output from from Python will be displayed on the console and you can interact with the various Python and web files using an appropriate editor.

Updating

  • HitWalker2 can be updated by first getting the most up-to-date files from github and placing them in the Vagrant file directory.
    • Assuming HitWalker2 is a cloned directory from github you can use git pull to update it.
  • Type vagrant provision --provision-with=patch to apply the new codebase to the Vagrant VM.