On 3 Aug 2012, at 7:13 AM, Alan Etkin <[email protected]> wrote:
> On Thursday, June 7, 2012 6:35:19 PM UTC-7, JoeCodeswell wrote:
> Hi Noel,
>
> I had this problem occur AGAIN, TODAY on WebFaction, when I upgraded to
> Version 1.99.7 (2012-03-04 22:12:08) stable, Running on Apache/2.2.17 (Unix)
> mod_wsgi/3.3 Python/2.7.3. When creating a new simple app from the web admin
> interface i get "unable to create application "newapp" (it may exist already)"
>
> I checked and there is NO welcome.w2p in the web2py directory. Here are the
> ssh commands i used.
>
> The same issue but with an installation script on CentOS. The web2py daemon
> does not seem to create the .w2p file, so the NEWINSTALL file remains
> whenever web2py is started and creating new apps from the admin fails.
>
> I'd like to start and stop the rocket server within the installation .sh
> script as a workaround, but there is no web2py.py option to start and stop
> the builtin server.
>
> Perhaps I can download a stable welcome.w2p package during installation from
> somewhere and remove the NEWINSTALL. Would be that possible?
I didn't check the shell syntax, but you get the idea.
if [ -f NEWINSTALL -a -d applications/welcome ]; then
python -c "from gluon.fileutils import w2p_pack;
w2p_pack('welcome.w2p','applications/welcome')"
rm NEWINSTALL
fi
--