Changes between Version 22 and Version 23 of InstallationGuidelines/Linux/Server/CherokeePostgreSQL


Ignore:
Timestamp:
01/27/12 23:00:31 (13 years ago)
Author:
Praneeth Bodduluri
Comment:

pull changed to respect init.d - we dont need the maintenance script anymore

Legend:

Unmodified
Added
Removed
Modified
  • InstallationGuidelines/Linux/Server/CherokeePostgreSQL

    v22 v23  
    388388chmod +x /usr/local/bin/compile
    389389
    390 #@ToDo: Complete Maintenance Site
    391 # (currently just disables Scheduler)
    392 cat << EOF > "/usr/local/bin/maintenance"
    393 #!/bin/sh
    394 if [ "" != "off" ]
    395 then
    396     #a2dissite maintenance
    397     #a2ensite production
    398     cd ~web2py && sudo -H -u web2py python web2py.py -K eden -Q >/dev/null 2>&1 &
    399 else
    400     killall -u web2py python
    401     #a2ensite maintenance
    402     #a2dissite production
    403 fi
    404 /etc/init.d/cherokee restart
    405 EOF
    406 chmod +x /usr/local/bin/maintenance
    407 
    408390cat << EOF > "/usr/local/bin/pull"
    409391#!/bin/sh
     392
     393/etc/init.d/uwsgi stop
    410394cd ~web2py/applications/eden
    411395sed -i 's/deployment_settings.base.migrate = False/deployment_settings.base.migrate = True/g' models/000_config.py
    412396git pull
    413 /usr/local/bin/maintenance
    414397rm -rf compiled
    415398cd ~web2py
     
    417400cd ~web2py/applications/eden
    418401sed -i 's/deployment_settings.base.migrate = True/deployment_settings.base.migrate = False/g' models/000_config.py
    419 /usr/local/bin/maintenance off
     402/etc/init.d/uwsgi start
    420403/usr/local/bin/compile
    421404EOF