{"action":"created","comment":{"url":"https://api.github.com/repos/sulu-cmf/sulu-docs/pulls/comments/25667933","id":25667933,"diff_hunk":"@@ -0,0 +1,63 @@\n+Sulu Maintenance Mode\n+=====================\n+\n+When you need to deploy a new version of your project on a production environment\n+it is often necessary to disable your sulu-application and inform your customers\n+about it.\n+\n+Sulu maintenance mode displays a simple error page which can be easily customized.\n+\n+Create Maintenance Mode\n+-----------------------\n+\n+To create a maintenance page, you first need to create a maintenance.php file:\n+\n+.. code-block:: bash\n+\n+    $ cp app/maintenance.php.dist app/maintenance.php\n+\n+Then you need to set the env variable SULU_MAINTENANCE to true. \n+E.g.: in your .htaccess file (for apache)\n+ \n+.. code-block:: php\n+\n+    SetEnv SULU_MAINTENANCE true\n+\n+Configure Maintenance Mode\n+--------------------------\n+\n+IP-Addreses:\n+~~~~~~~~~~~~\n+\n+You may like to access your application while maintenance mode is active. Then you need to set $allowedIPs:\n+\n+.. code-block:: php\n+\n+    $allowedIPs = array(\n+        '127.0.0.1'\n+    );\n+\n+Translations:\n+~~~~~~~~~~~~~\n+You can define translations for your template as follows:","path":"cookbook/maintenance-mode.rst","position":42,"original_position":42,"commit_id":"a419fbdf39410840d654b46cde36abf5c737541f","original_commit_id":"a419fbdf39410840d654b46cde36abf5c737541f","user":{"login":"dantleech","id":530801,"avatar_url":"https://avatars.githubusercontent.com/u/530801?v=3","gravatar_id":"","url":"https://api.github.com/users/dantleech","html_url":"https://github.com/dantleech","followers_url":"https://api.github.com/users/dantleech/followers","following_url":"https://api.github.com/users/dantleech/following{/other_user}","gists_url":"https://api.github.com/users/dantleech/gists{/gist_id}","starred_url":"https://api.github.com/users/dantleech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dantleech/subscriptions","organizations_url":"https://api.github.com/users/dantleech/orgs","repos_url":"https://api.github.com/users/dantleech/repos","events_url":"https://api.github.com/users/dantleech/events{/privacy}","received_events_url":"https://api.github.com/users/dantleech/received_events","type":"User","site_admin":false},"body":"Always a blank line after a section heading.","created_at":"2015-03-03T07:40:43Z","updated_at":"2015-03-03T07:40:43Z","html_url":"https://github.com/sulu-cmf/sulu-docs/pull/16#discussion_r25667933","pull_request_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/sulu-cmf/sulu-docs/pulls/comments/25667933"},"html":{"href":"https://github.com/sulu-cmf/sulu-docs/pull/16#discussion_r25667933"},"pull_request":{"href":"https://api.github.com/repos/sulu-cmf/sulu-docs/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/sulu-cmf/sulu-docs/pulls/16","id":30296940,"html_url":"https://github.com/sulu-cmf/sulu-docs/pull/16","diff_url":"https://github.com/sulu-cmf/sulu-docs/pull/16.diff","patch_url":"https://github.com/sulu-cmf/sulu-docs/pull/16.patch","issue_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/issues/16","number":16,"state":"open","locked":false,"title":"added documentation for maintenance mode","user":{"login":"turbo-ele","id":5152633,"avatar_url":"https://avatars.githubusercontent.com/u/5152633?v=3","gravatar_id":"","url":"https://api.github.com/users/turbo-ele","html_url":"https://github.com/turbo-ele","followers_url":"https://api.github.com/users/turbo-ele/followers","following_url":"https://api.github.com/users/turbo-ele/following{/other_user}","gists_url":"https://api.github.com/users/turbo-ele/gists{/gist_id}","starred_url":"https://api.github.com/users/turbo-ele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turbo-ele/subscriptions","organizations_url":"https://api.github.com/users/turbo-ele/orgs","repos_url":"https://api.github.com/users/turbo-ele/repos","events_url":"https://api.github.com/users/turbo-ele/events{/privacy}","received_events_url":"https://api.github.com/users/turbo-ele/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-02T16:25:12Z","updated_at":"2015-03-03T07:40:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1464e3c85eb6662f5a62c7231a490d9e458c50ae","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/pulls/16/commits","review_comments_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/pulls/16/comments","review_comment_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/issues/16/comments","statuses_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/statuses/a419fbdf39410840d654b46cde36abf5c737541f","head":{"label":"sulu-cmf:maintenance","ref":"maintenance","sha":"a419fbdf39410840d654b46cde36abf5c737541f","user":{"login":"sulu-cmf","id":5717006,"avatar_url":"https://avatars.githubusercontent.com/u/5717006?v=3","gravatar_id":"","url":"https://api.github.com/users/sulu-cmf","html_url":"https://github.com/sulu-cmf","followers_url":"https://api.github.com/users/sulu-cmf/followers","following_url":"https://api.github.com/users/sulu-cmf/following{/other_user}","gists_url":"https://api.github.com/users/sulu-cmf/gists{/gist_id}","starred_url":"https://api.github.com/users/sulu-cmf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sulu-cmf/subscriptions","organizations_url":"https://api.github.com/users/sulu-cmf/orgs","repos_url":"https://api.github.com/users/sulu-cmf/repos","events_url":"https://api.github.com/users/sulu-cmf/events{/privacy}","received_events_url":"https://api.github.com/users/sulu-cmf/received_events","type":"Organization","site_admin":false},"repo":{"id":22838344,"name":"sulu-docs","full_name":"sulu-cmf/sulu-docs","owner":{"login":"sulu-cmf","id":5717006,"avatar_url":"https://avatars.githubusercontent.com/u/5717006?v=3","gravatar_id":"","url":"https://api.github.com/users/sulu-cmf","html_url":"https://github.com/sulu-cmf","followers_url":"https://api.github.com/users/sulu-cmf/followers","following_url":"https://api.github.com/users/sulu-cmf/following{/other_user}","gists_url":"https://api.github.com/users/sulu-cmf/gists{/gist_id}","starred_url":"https://api.github.com/users/sulu-cmf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sulu-cmf/subscriptions","organizations_url":"https://api.github.com/users/sulu-cmf/orgs","repos_url":"https://api.github.com/users/sulu-cmf/repos","events_url":"https://api.github.com/users/sulu-cmf/events{/privacy}","received_events_url":"https://api.github.com/users/sulu-cmf/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sulu-cmf/sulu-docs","description":"","fork":false,"url":"https://api.github.com/repos/sulu-cmf/sulu-docs","forks_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/forks","keys_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/teams","hooks_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/hooks","issue_events_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/issues/events{/number}","events_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/events","assignees_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/assignees{/user}","branches_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/branches{/branch}","tags_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/tags","blobs_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/languages","stargazers_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/stargazers","contributors_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/contributors","subscribers_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/subscribers","subscription_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/subscription","commits_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/contents/{+path}","compare_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/merges","archive_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/downloads","issues_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/issues{/number}","pulls_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/labels{/name}","releases_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/releases{/id}","created_at":"2014-08-11T12:31:16Z","updated_at":"2015-02-19T12:33:27Z","pushed_at":"2015-03-02T16:32:19Z","git_url":"git://github.com/sulu-cmf/sulu-docs.git","ssh_url":"git@github.com:sulu-cmf/sulu-docs.git","clone_url":"https://github.com/sulu-cmf/sulu-docs.git","svn_url":"https://github.com/sulu-cmf/sulu-docs","homepage":null,"size":708,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"base":{"label":"sulu-cmf:master","ref":"master","sha":"f05a903377533b0119a75feef801fd12cc5ad46d","user":{"login":"sulu-cmf","id":5717006,"avatar_url":"https://avatars.githubusercontent.com/u/5717006?v=3","gravatar_id":"","url":"https://api.github.com/users/sulu-cmf","html_url":"https://github.com/sulu-cmf","followers_url":"https://api.github.com/users/sulu-cmf/followers","following_url":"https://api.github.com/users/sulu-cmf/following{/other_user}","gists_url":"https://api.github.com/users/sulu-cmf/gists{/gist_id}","starred_url":"https://api.github.com/users/sulu-cmf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sulu-cmf/subscriptions","organizations_url":"https://api.github.com/users/sulu-cmf/orgs","repos_url":"https://api.github.com/users/sulu-cmf/repos","events_url":"https://api.github.com/users/sulu-cmf/events{/privacy}","received_events_url":"https://api.github.com/users/sulu-cmf/received_events","type":"Organization","site_admin":false},"repo":{"id":22838344,"name":"sulu-docs","full_name":"sulu-cmf/sulu-docs","owner":{"login":"sulu-cmf","id":5717006,"avatar_url":"https://avatars.githubusercontent.com/u/5717006?v=3","gravatar_id":"","url":"https://api.github.com/users/sulu-cmf","html_url":"https://github.com/sulu-cmf","followers_url":"https://api.github.com/users/sulu-cmf/followers","following_url":"https://api.github.com/users/sulu-cmf/following{/other_user}","gists_url":"https://api.github.com/users/sulu-cmf/gists{/gist_id}","starred_url":"https://api.github.com/users/sulu-cmf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sulu-cmf/subscriptions","organizations_url":"https://api.github.com/users/sulu-cmf/orgs","repos_url":"https://api.github.com/users/sulu-cmf/repos","events_url":"https://api.github.com/users/sulu-cmf/events{/privacy}","received_events_url":"https://api.github.com/users/sulu-cmf/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sulu-cmf/sulu-docs","description":"","fork":false,"url":"https://api.github.com/repos/sulu-cmf/sulu-docs","forks_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/forks","keys_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/teams","hooks_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/hooks","issue_events_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/issues/events{/number}","events_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/events","assignees_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/assignees{/user}","branches_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/branches{/branch}","tags_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/tags","blobs_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/languages","stargazers_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/stargazers","contributors_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/contributors","subscribers_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/subscribers","subscription_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/subscription","commits_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/contents/{+path}","compare_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/merges","archive_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/downloads","issues_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/issues{/number}","pulls_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/labels{/name}","releases_url":"https://api.github.com/repos/sulu-cmf/sulu-docs/releases{/id}","created_at":"2014-08-11T12:31:16Z","updated_at":"2015-02-19T12:33:27Z","pushed_at":"2015-03-02T16:32:19Z","git_url":"git://github.com/sulu-cmf/sulu-docs.git","ssh_url":"git@github.com:sulu-cmf/sulu-docs.git","clone_url":"https://github.com/sulu-cmf/sulu-docs.git","svn_url":"https://github.com/sulu-cmf/sulu-docs","homepage":null,"size":708,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sulu-cmf/sulu-docs/pulls/16"},"html":{"href":"https://github.com/sulu-cmf/sulu-docs/pull/16"},"issue":{"href":"https://api.github.com/repos/sulu-cmf/sulu-docs/issues/16"},"comments":{"href":"https://api.github.com/repos/sulu-cmf/sulu-docs/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/sulu-cmf/sulu-docs/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/sulu-cmf/sulu-docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sulu-cmf/sulu-docs/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/sulu-cmf/sulu-docs/statuses/a419fbdf39410840d654b46cde36abf5c737541f"}}}}