Sha256: 47aa45c25e4a7228e5b7c1be6459a14cf0680d79602a01f8a93e3f935224c024

Contents?: true

Size: 1.2 KB

Versions: 6

Compression:

Stored size: 1.2 KB

Contents

h1. deploy:web

 "home":../index.html > "recipes":index.html >  "deploy":deploy.html  >  web  


h2. Tasks

* "deploy:web:disable":#deploy:web:disable 
* "deploy:web:enable":#deploy:web:enable 


h2. Task documentation

h3(#deploy:web:disable). deploy:web:disable

Present a maintenance page to visitors. Disables your application's web       interface by writing a "maintenance.html" file to each web server. The       servers must be configured to detect the presence of this file, and if       it is present, always display it instead of performing the request.

By default, the maintenance page will just say the site is down for       "maintenance", and will be back "shortly", but you can customize the       page by specifying the REASON and UNTIL environment variables:

  $ cap deploy:web:disable \
        REASON="hardware upgrade" \
        UNTIL="12pm Central Time"

Further customization will require that you write your own task.



h3(#deploy:web:enable). deploy:web:enable

Makes the application web-accessible again. Removes the       "maintenance.html" page generated by deploy:web:disable, which (if your       web servers are configured correctly) will make your application       web-accessible again.



Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
capitate-0.2.1 docs/recipes/deploy-web.txt
capitate-0.2.2 docs/recipes/deploy-web.txt
capitate-0.2.3 docs/recipes/deploy-web.txt
capitate-0.2.5 docs/recipes/deploy-web.txt
capitate-0.2.7 docs/recipes/deploy-web.txt
capitate-0.2.6 docs/recipes/deploy-web.txt