Skip to content

How to do development

Peter Hurford edited this page Sep 22, 2015 · 3 revisions

Contributing

To contribute, fork the main repo https://github.com/tricycle/eaforum and submit PRs to them directly. Also follow our issue tracker at https://github.com/tog22/eaforum/issues for details on what needs to be done.

Testing out changes

Edit files in the directory/disk image from which you start the VM. You can do this from within the vagrant ssh session or outside it.

then stop and rerun paster serve --reload development.ini sometimes has some lag in showing changes cant figure it out but hard shift-f5 web page refreshes seem to help

(Patrick has found he hasn’t had to restart server. If anyone can figure this out that’d be cool.)

Changes saved to any of the forum's caches (Cassandra and memcached) will not be updated for a while after changes are actually made. (i.e. user-inputted data will not be reloaded unless tiem has passed or a reload is forced) Using the '--reload' tag should make the server auto-restart itself when it detects changes to any of the python files it uses. HTML (i.e. templates) is served from the source and should updated automatically, with the caveat that some of the templates (e.g. showmeetup.html) are AFAICT compiled on meetup creation and saved (?).

Then you should be able to see your changes at your local URL, which should be http://lesswrong.local:8080 or http://lesswrong.local:3000

Clone this wiki locally