[tor-bugs] #11417 [Tor Weather]: add vagrant file for weather

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed May 7 09:18:09 UTC 2014


#11417: add vagrant file for weather
-----------------------------+-----------------------------
     Reporter:  feverDream   |      Owner:  baumanno
         Type:  task         |     Status:  needs_review
     Priority:  normal       |  Milestone:
    Component:  Tor Weather  |    Version:
   Resolution:               |   Keywords:  weather-rewrite
Actual Points:               |  Parent ID:
       Points:               |
-----------------------------+-----------------------------

Comment (by baumanno):

 Thanks for the feedback!

 * I used `git rebase -i HEAD~XX` and squashed the commits via that. Under
 the hood, I guess the result should be the same, but maybe `git commit
 --squash` has prettier output - will keep it in mind!

 * `Vagrant.md` will be merged with the README to get rid of the obsolete
 content

 * Regarding directory structure: we can stick to the current layout, i.e.
 `/home/weather/opt/current`, if this eases the deployment.

 * `weather/initial_data.json` is there to avoid user input on running
 `manage.py syncdb` from the shell provisioner. All it does is create a
 superuser, you might remember the django prompt `Would you like to create
 a superuser now? [yN]` - `initial_data.json` is simply the dump
 immediately after creating the superuser. Were we to drop this fixture,
 the provisioner would hang. The only option then is to do this by hand
 from within the VM. **Shall we do that?**

 * regarding `PROJECT_PATH`: this could have been used instead of a
 hardcoded absolute path considering the current layout. However, if we
 decide to replicate the production-host as much as possible, this approach
 might be moot.

 **Todo**
 I'll try to replicate the structure as it is on bahri as much as possible
 for the vagrant box. This will hopefully avoid touching any django-config
 and ease deployment later.

 Thanks for reviewing this, and I'll keep you updated on progress!

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/11417#comment:9>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list