{"action":"created","comment":{"url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/pulls/comments/90076691","pull_request_review_id":10601657,"id":90076691,"diff_hunk":"@@ -0,0 +1,97 @@\n+================================================\n+How to create static web sites with DreamObjects\n+================================================\n+\n+You can configure a DreamObjects bucket to serve static web pages made\n+of HTML, CSS and JavaScript. This allows to host a whole web site that\n+is quick, easy to create and extremely cheap.\n+\n+Static web pages are usually HTML pages that are served as stored,\n+instead of being built dynamically by a web application like\n+WordPress, Django, and similar ones. There are a lot of tools that\n+help generate and maintain static web pages: the site `StaticGen\n+<https://www.staticgen.com/>`_ maintains a list of open source static\n+site generators that you can use to create the files to upload in your\n+new DreamObjects website bucket.\n+\n+This tutorial covers how to **serve** a static website from a\n+DreamObjects bucket, and doesn't cover how to create the files for the\n+static website itself.\n+\n+.. note:: Make sure you have a working `installation of S3cmd\n+          <215916627>`_ before proceeding.\n+\n+Create the bucket\n+-----------------\n+\n+The name of the bucket should be the same name of the CNAME. For\n+example, if your website will be www.example.com,  name the bucket\n+`www.example.com`.\n+\n+.. code-block:: console\n+\n+    [user@localhost]$ s3cmd mb s3://www.example.com\n+    Bucket 's3://www.example.com/' created\n+\n+Create the website for the bucket\n+---------------------------------\n+\n+Once the bucket has been created, use s3cmd to configure the bucket as\n+a website. The option `ws-create` takes many arguments but for this\n+example we'll configure the default index page.\n+\n+.. code-block:: console\n+\n+    [user@localhost]$ s3cmd ws-create --ws-index index.html s3://www.example.com\n+    Bucket 's3://www.example.com/': website configuration created.\n+\n+You can also configure a default error page, using `--ws-error`\n+argument for `ws-create` command. Read the full `S3cmd man page\n+<http://manpages.org/s3cmd>`_ for more details.\n+\n+Check the results of the command with `ws-info`, it should look like\n+the example below:\n+\n+.. code-block:: console\n+\n+    [user@localhost]$ s3cmd ws-info s3://www.example.com\n+    Bucket s3://example.com/: Website configuration","path":"source/dreamobjects/tutorials/how-to-host-staticsite.rst","position":58,"original_position":58,"commit_id":"fe2ca6df5830e2677325dc3f319bac0d42020933","original_commit_id":"fe2ca6df5830e2677325dc3f319bac0d42020933","user":{"login":"robbat2","id":373898,"avatar_url":"https://avatars.githubusercontent.com/u/373898?v=3","gravatar_id":"","url":"https://api.github.com/users/robbat2","html_url":"https://github.com/robbat2","followers_url":"https://api.github.com/users/robbat2/followers","following_url":"https://api.github.com/users/robbat2/following{/other_user}","gists_url":"https://api.github.com/users/robbat2/gists{/gist_id}","starred_url":"https://api.github.com/users/robbat2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robbat2/subscriptions","organizations_url":"https://api.github.com/users/robbat2/orgs","repos_url":"https://api.github.com/users/robbat2/repos","events_url":"https://api.github.com/users/robbat2/events{/privacy}","received_events_url":"https://api.github.com/users/robbat2/received_events","type":"User","site_admin":false},"body":"should be `s3://www.example.com/`","created_at":"2016-11-29T18:41:35Z","updated_at":"2016-11-29T18:41:43Z","html_url":"https://github.com/dreamhost/dreamcloud-docs/pull/136#discussion_r90076691","pull_request_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/pulls/136","_links":{"self":{"href":"https://api.github.com/repos/dreamhost/dreamcloud-docs/pulls/comments/90076691"},"html":{"href":"https://github.com/dreamhost/dreamcloud-docs/pull/136#discussion_r90076691"},"pull_request":{"href":"https://api.github.com/repos/dreamhost/dreamcloud-docs/pulls/136"}}},"pull_request":{"url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/pulls/136","id":95749231,"html_url":"https://github.com/dreamhost/dreamcloud-docs/pull/136","diff_url":"https://github.com/dreamhost/dreamcloud-docs/pull/136.diff","patch_url":"https://github.com/dreamhost/dreamcloud-docs/pull/136.patch","issue_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/issues/136","number":136,"state":"open","locked":false,"title":"Tutorial for DreamObjects Static site","user":{"login":"smaffulli","id":1348736,"avatar_url":"https://avatars.githubusercontent.com/u/1348736?v=3","gravatar_id":"","url":"https://api.github.com/users/smaffulli","html_url":"https://github.com/smaffulli","followers_url":"https://api.github.com/users/smaffulli/followers","following_url":"https://api.github.com/users/smaffulli/following{/other_user}","gists_url":"https://api.github.com/users/smaffulli/gists{/gist_id}","starred_url":"https://api.github.com/users/smaffulli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smaffulli/subscriptions","organizations_url":"https://api.github.com/users/smaffulli/orgs","repos_url":"https://api.github.com/users/smaffulli/repos","events_url":"https://api.github.com/users/smaffulli/events{/privacy}","received_events_url":"https://api.github.com/users/smaffulli/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-29T18:33:00Z","updated_at":"2016-11-29T18:43:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b84fecd2aa102e8517008ccaebddb62457e50ad4","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/pulls/136/commits","review_comments_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/pulls/136/comments","review_comment_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/issues/136/comments","statuses_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/statuses/fe2ca6df5830e2677325dc3f319bac0d42020933","head":{"label":"dreamhost:static-site","ref":"static-site","sha":"fe2ca6df5830e2677325dc3f319bac0d42020933","user":{"login":"dreamhost","id":1339138,"avatar_url":"https://avatars.githubusercontent.com/u/1339138?v=3","gravatar_id":"","url":"https://api.github.com/users/dreamhost","html_url":"https://github.com/dreamhost","followers_url":"https://api.github.com/users/dreamhost/followers","following_url":"https://api.github.com/users/dreamhost/following{/other_user}","gists_url":"https://api.github.com/users/dreamhost/gists{/gist_id}","starred_url":"https://api.github.com/users/dreamhost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dreamhost/subscriptions","organizations_url":"https://api.github.com/users/dreamhost/orgs","repos_url":"https://api.github.com/users/dreamhost/repos","events_url":"https://api.github.com/users/dreamhost/events{/privacy}","received_events_url":"https://api.github.com/users/dreamhost/received_events","type":"Organization","site_admin":false},"repo":{"id":41562041,"name":"dreamcloud-docs","full_name":"dreamhost/dreamcloud-docs","owner":{"login":"dreamhost","id":1339138,"avatar_url":"https://avatars.githubusercontent.com/u/1339138?v=3","gravatar_id":"","url":"https://api.github.com/users/dreamhost","html_url":"https://github.com/dreamhost","followers_url":"https://api.github.com/users/dreamhost/followers","following_url":"https://api.github.com/users/dreamhost/following{/other_user}","gists_url":"https://api.github.com/users/dreamhost/gists{/gist_id}","starred_url":"https://api.github.com/users/dreamhost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dreamhost/subscriptions","organizations_url":"https://api.github.com/users/dreamhost/orgs","repos_url":"https://api.github.com/users/dreamhost/repos","events_url":"https://api.github.com/users/dreamhost/events{/privacy}","received_events_url":"https://api.github.com/users/dreamhost/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dreamhost/dreamcloud-docs","description":"Documentation for users of all DreamHost Cloud products (DreamCompute, DreamObjects, etc). Aimed at developers who wish to learn how to use DreamHost Cloud standard APIs (based on OpenStack) to automate common tasks.","fork":false,"url":"https://api.github.com/repos/dreamhost/dreamcloud-docs","forks_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/forks","keys_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/teams","hooks_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/hooks","issue_events_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/issues/events{/number}","events_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/events","assignees_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/assignees{/user}","branches_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/branches{/branch}","tags_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/tags","blobs_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/languages","stargazers_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/stargazers","contributors_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/contributors","subscribers_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/subscribers","subscription_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/subscription","commits_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/contents/{+path}","compare_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/merges","archive_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/downloads","issues_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/issues{/number}","pulls_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/labels{/name}","releases_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/releases{/id}","deployments_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/deployments","created_at":"2015-08-28T18:11:40Z","updated_at":"2016-11-12T00:10:05Z","pushed_at":"2016-11-29T18:37:15Z","git_url":"git://github.com/dreamhost/dreamcloud-docs.git","ssh_url":"git@github.com:dreamhost/dreamcloud-docs.git","clone_url":"https://github.com/dreamhost/dreamcloud-docs.git","svn_url":"https://github.com/dreamhost/dreamcloud-docs","homepage":"https://www.dreamhost.com/cloud","size":31516,"stargazers_count":9,"watchers_count":9,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":11,"forks":18,"open_issues":11,"watchers":9,"default_branch":"master"}},"base":{"label":"dreamhost:master","ref":"master","sha":"0c09363b6a13df54aef8d6636ec5c246990ba876","user":{"login":"dreamhost","id":1339138,"avatar_url":"https://avatars.githubusercontent.com/u/1339138?v=3","gravatar_id":"","url":"https://api.github.com/users/dreamhost","html_url":"https://github.com/dreamhost","followers_url":"https://api.github.com/users/dreamhost/followers","following_url":"https://api.github.com/users/dreamhost/following{/other_user}","gists_url":"https://api.github.com/users/dreamhost/gists{/gist_id}","starred_url":"https://api.github.com/users/dreamhost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dreamhost/subscriptions","organizations_url":"https://api.github.com/users/dreamhost/orgs","repos_url":"https://api.github.com/users/dreamhost/repos","events_url":"https://api.github.com/users/dreamhost/events{/privacy}","received_events_url":"https://api.github.com/users/dreamhost/received_events","type":"Organization","site_admin":false},"repo":{"id":41562041,"name":"dreamcloud-docs","full_name":"dreamhost/dreamcloud-docs","owner":{"login":"dreamhost","id":1339138,"avatar_url":"https://avatars.githubusercontent.com/u/1339138?v=3","gravatar_id":"","url":"https://api.github.com/users/dreamhost","html_url":"https://github.com/dreamhost","followers_url":"https://api.github.com/users/dreamhost/followers","following_url":"https://api.github.com/users/dreamhost/following{/other_user}","gists_url":"https://api.github.com/users/dreamhost/gists{/gist_id}","starred_url":"https://api.github.com/users/dreamhost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dreamhost/subscriptions","organizations_url":"https://api.github.com/users/dreamhost/orgs","repos_url":"https://api.github.com/users/dreamhost/repos","events_url":"https://api.github.com/users/dreamhost/events{/privacy}","received_events_url":"https://api.github.com/users/dreamhost/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dreamhost/dreamcloud-docs","description":"Documentation for users of all DreamHost Cloud products (DreamCompute, DreamObjects, etc). Aimed at developers who wish to learn how to use DreamHost Cloud standard APIs (based on OpenStack) to automate common tasks.","fork":false,"url":"https://api.github.com/repos/dreamhost/dreamcloud-docs","forks_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/forks","keys_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/teams","hooks_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/hooks","issue_events_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/issues/events{/number}","events_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/events","assignees_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/assignees{/user}","branches_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/branches{/branch}","tags_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/tags","blobs_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/languages","stargazers_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/stargazers","contributors_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/contributors","subscribers_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/subscribers","subscription_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/subscription","commits_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/contents/{+path}","compare_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/merges","archive_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/downloads","issues_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/issues{/number}","pulls_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/labels{/name}","releases_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/releases{/id}","deployments_url":"https://api.github.com/repos/dreamhost/dreamcloud-docs/deployments","created_at":"2015-08-28T18:11:40Z","updated_at":"2016-11-12T00:10:05Z","pushed_at":"2016-11-29T18:37:15Z","git_url":"git://github.com/dreamhost/dreamcloud-docs.git","ssh_url":"git@github.com:dreamhost/dreamcloud-docs.git","clone_url":"https://github.com/dreamhost/dreamcloud-docs.git","svn_url":"https://github.com/dreamhost/dreamcloud-docs","homepage":"https://www.dreamhost.com/cloud","size":31516,"stargazers_count":9,"watchers_count":9,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":11,"forks":18,"open_issues":11,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dreamhost/dreamcloud-docs/pulls/136"},"html":{"href":"https://github.com/dreamhost/dreamcloud-docs/pull/136"},"issue":{"href":"https://api.github.com/repos/dreamhost/dreamcloud-docs/issues/136"},"comments":{"href":"https://api.github.com/repos/dreamhost/dreamcloud-docs/issues/136/comments"},"review_comments":{"href":"https://api.github.com/repos/dreamhost/dreamcloud-docs/pulls/136/comments"},"review_comment":{"href":"https://api.github.com/repos/dreamhost/dreamcloud-docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dreamhost/dreamcloud-docs/pulls/136/commits"},"statuses":{"href":"https://api.github.com/repos/dreamhost/dreamcloud-docs/statuses/fe2ca6df5830e2677325dc3f319bac0d42020933"}}}}
{"actor":{"display_login":"robbat2"}}