<div dir="ltr">Hi,<div><br></div><div>just FYI, thanks to Tom Kralidis, <a href="http://demo.pywps.org">demo.pywps.org</a> is now running from MASTER branch of our GITHub</div><div><br></div><div>That means, we can now point our integration tests to <a href="http://demo.pywps.org">demo.pywps.org</a> and also run cite tests against latest code</div><div><br></div><div>Thanks one more time, Tome</div><div><br></div><div>J<br><br>P.S. I'm a bit sick this weeks, therefore sorry for long response times</div><div><br><div class="gmail_quote"><div dir="ltr">---------- Forwarded message ---------<br>From: Tom Kralidis <<a href="mailto:tomkralidis@gmail.com">tomkralidis@gmail.com</a>><br>Date: út 13. 9. 2016 v 4:23<br>Subject: Re: auto deployment of pywps<br>To: Jachym Cepicky <<a href="mailto:jachym.cepicky@gmail.com">jachym.cepicky@gmail.com</a>><br></div><br><br>Hi Jachym: thank for the script.  FYI the auto-deployment is now<br>
setup.  Script in<br>
<a href="https://github.com/geopython/demo.pywps.org/blob/master/PyWPS/webhook-deploy.wsgi" rel="noreferrer" target="_blank">https://github.com/geopython/demo.pywps.org/blob/master/PyWPS/webhook-deploy.wsgi</a>.<br>
<br>
Basically, when a GitHub commit occurs, the script is triggered and:<br>
- updates master<br>
- does python setup.py install<br>
- touches the PyWPS/wps.wsgi file which auto-reloads the application<br>
without having to reload Apache<br>
<br>
Also note that I had to add www-data to the pywps group and changed<br>
all files/dirs to be group writeable.  As well, I added you to group<br>
pywps.<br>
<br>
So now the entire <a href="http://demo.pywps.org" rel="noreferrer" target="_blank">demo.pywps.org</a> is clean, with the only diff being in<br>
/osgeo/<a href="http://demo.pywps.org/etc/apache/demo.pycsw.org" rel="noreferrer" target="_blank">demo.pywps.org/etc/apache/demo.pycsw.org</a> which has the GitHub<br>
key (which we shouldn't commit this change of course :).<br>
<br>
I had to make changes to your script to get everything working<br>
correctly.  Let me know your thoughts.  If this is all okay/works,<br>
I'll announce to the pywps-dev mailing list.<br>
<br>
Cheers<br>
<br>
..Tom<br>
<br>
<br>
<br>
<br>
On Sun, Sep 11, 2016 at 4:03 PM, Jachym Cepicky<br>
<<a href="mailto:jachym.cepicky@gmail.com" target="_blank">jachym.cepicky@gmail.com</a>> wrote:<br>
> Hi Tom,<br>
><br>
> I've written first version of the auto-deploy script and stored it in<br>
><br>
> /home/jachym/pywps_update.py<br>
><br>
> I hope, you can read it<br>
><br>
> We need to make the script accessible as CGI script somewhere in<br>
> <a href="http://pywps.demo.org/cgi-bin/" rel="noreferrer" target="_blank">pywps.demo.org/cgi-bin/</a><br>
><br>
> Then we need, that the user "apache" has write access to all the files<br>
> stored in /osgeo/<a href="http://demo.pywps.org/src/" rel="noreferrer" target="_blank">demo.pywps.org/src/</a><br>
><br>
> Please, have a look at the script (I hope, you have at least read access?),<br>
> and tell me, what we all can do to get it deployed? It basically just calls<br>
> "git pull" if only there is "# DEPLOY PYWPS #" string in the last commit<br>
> message - so it should be easy to read and I do not see any possibility of<br>
> doing any harm<br>
><br>
> What do you think?<br>
><br>
> Thanks<br>
><br>
> Jachym<br>
</div></div></div>