On Fri, 16 Dec 2011, Guenay, Yigit wrote:
> I was actually looking for a method with which I wouldn't restart
> Apache each time. However, it's not a big deal though; I can restart
> it every time I update a script.

You can run the following one-liner:

  $ make -s && sudo -u www-data make -s install && \
        sudo -u www-data /opt/invenio/bin/inveniocfg --update-all && \
        sudo -u www-data touch /opt/invenio/var/www-wsgi/invenio.wsgi

This will install your edits and restart your WSGI application at the
same time.

BTW, you may want to look at my collection of helper scripts:

   <https://github.com/tiborsimko/invenio-devscripts>

containing an example of how you could easily invoke the above action
from your favourite editor.

Best regards
-- 
Tibor Simko

Reply via email to