Changes between Version 22 and Version 23 of InstallationGuidelines/Linux/Server/CherokeePostgreSQL
- Timestamp:
- 01/27/12 23:00:31 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
InstallationGuidelines/Linux/Server/CherokeePostgreSQL
v22 v23 388 388 chmod +x /usr/local/bin/compile 389 389 390 #@ToDo: Complete Maintenance Site391 # (currently just disables Scheduler)392 cat << EOF > "/usr/local/bin/maintenance"393 #!/bin/sh394 if [ "" != "off" ]395 then396 #a2dissite maintenance397 #a2ensite production398 cd ~web2py && sudo -H -u web2py python web2py.py -K eden -Q >/dev/null 2>&1 &399 else400 killall -u web2py python401 #a2ensite maintenance402 #a2dissite production403 fi404 /etc/init.d/cherokee restart405 EOF406 chmod +x /usr/local/bin/maintenance407 408 390 cat << EOF > "/usr/local/bin/pull" 409 391 #!/bin/sh 392 393 /etc/init.d/uwsgi stop 410 394 cd ~web2py/applications/eden 411 395 sed -i 's/deployment_settings.base.migrate = False/deployment_settings.base.migrate = True/g' models/000_config.py 412 396 git pull 413 /usr/local/bin/maintenance414 397 rm -rf compiled 415 398 cd ~web2py … … 417 400 cd ~web2py/applications/eden 418 401 sed -i 's/deployment_settings.base.migrate = True/deployment_settings.base.migrate = False/g' models/000_config.py 419 / usr/local/bin/maintenance off402 /etc/init.d/uwsgi start 420 403 /usr/local/bin/compile 421 404 EOF