Skip to content

Setting up the VM for development

Romain edited this page Aug 16, 2018 · 3 revisions

To setup the VM you need a ssh access to the main database. Then you can configure the VM with the following steps:

  1. Log to the VM (ssh localhost -p 22222, romain:romain)
  2. Copy your ssh private key to access the host with the postgresql db
  3. Setup your psql login name in ~/iwr/internetHealthReport/internetHealthReport/settings.py
  4. Stop the local postgres server and ssh-forward to the remote db with this command: cd ~; sh runWebsite.sh
  5. Restart the webserver: sudo service apache2 restart
  6. See the website at: http://localhost:12345/ihr/

Useful tips:

  • Access the python environment used by django: source ~/iwr/bin/activate
Clone this wiki locally