Skip to content

Maintenance mode

black3r edited this page Nov 3, 2014 · 1 revision

Maintenance mod mame aktualne nakonfigurovany takto (v konfiguraku virtualenv-u):

DocumentRoot /home/<meno_usera>/
RewriteCond %{DOCUMENT_ROOT}maintenance -f
RewriteCond %{REQUEST_URI} !^/static/.*$
RewriteCond %{REMOTE_ADDR} !=158.195.199.9
RewriteCond %{REMOTE_ADDR} !=158.195.17.76
RewriteRule ^.*$ /static/maintenance.html [R=302]

Na zapnutie maintenance mod-u sa da pouzit prikaz touch ~/maintenance, vypina sa to umazanim toho suboru cez rm -f ~/maintenance. Obidva prikazy sa spustaju z konzoly prihlaseneho user-a trojstenweb@archiv resp. betakspweb@archiv..

Soon sa bude dat zapinat maintenance mod aj cez fabfile, aj na to vsak budete potrebovat pristup k danym user-om...

Clone this wiki locally