{"action":"created","comment":{"url":"https://api.github.com/repos/pantheon-systems/documentation/pulls/comments/39794100","id":39794100,"diff_hunk":"@@ -0,0 +1,19 @@\n+---\n+title: Adding a services.yml File\n+description: Learn how to add a services.yml file for Drupal 8.\n+category:\n+  - developing\n+  - drupal\n+keywords: drupal, services.yml, yml file\n+---\n+With Drupal 8, you may receive a \"permission denied\" error when trying to add a services.yml file under the `sites/default` folder.\n+\n+This happens when you are trying to add it in while you're in SFTP mode. You need to switch to Git mode to add the file. This is because the `sites/default` directory has the permissions of 555, even if you toggle SFTP mode on and off.\n+\n+## Add a services.yml File in Git\n+\n+1. On the Code tab of your Dashboard, click **Git**.  \n+2. Create the file locally.  \n+3. Open your terminal and run `git add .`.  \n+4. Run `commit -m\"enter a commit message`.  \n+5. Push the file by running `git push origin origin-name`.","path":"source/docs/articles/drupal/adding-yml-file.md","position":null,"original_position":19,"commit_id":"02cd0b3044c47987be77e756b1780e6e556c7c86","original_commit_id":"a587b785be5523ac7106c039b4e2ee31fc75d0b9","user":{"login":"nataliejeremy","id":9138609,"avatar_url":"https://avatars.githubusercontent.com/u/9138609?v=3","gravatar_id":"","url":"https://api.github.com/users/nataliejeremy","html_url":"https://github.com/nataliejeremy","followers_url":"https://api.github.com/users/nataliejeremy/followers","following_url":"https://api.github.com/users/nataliejeremy/following{/other_user}","gists_url":"https://api.github.com/users/nataliejeremy/gists{/gist_id}","starred_url":"https://api.github.com/users/nataliejeremy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nataliejeremy/subscriptions","organizations_url":"https://api.github.com/users/nataliejeremy/orgs","repos_url":"https://api.github.com/users/nataliejeremy/repos","events_url":"https://api.github.com/users/nataliejeremy/events{/privacy}","received_events_url":"https://api.github.com/users/nataliejeremy/received_events","type":"User","site_admin":false},"body":"@rachelwhitton @bmackinney This was not in the issue. My understanding is this is the way we recommend adding the services.yml file and should be the only documented method. Is this correct or do we want to provide an alternative?","created_at":"2015-09-17T20:23:06Z","updated_at":"2015-09-17T20:23:06Z","html_url":"https://github.com/pantheon-systems/documentation/pull/936#discussion_r39794100","pull_request_url":"https://api.github.com/repos/pantheon-systems/documentation/pulls/936","_links":{"self":{"href":"https://api.github.com/repos/pantheon-systems/documentation/pulls/comments/39794100"},"html":{"href":"https://github.com/pantheon-systems/documentation/pull/936#discussion_r39794100"},"pull_request":{"href":"https://api.github.com/repos/pantheon-systems/documentation/pulls/936"}}},"pull_request":{"url":"https://api.github.com/repos/pantheon-systems/documentation/pulls/936","id":45099653,"html_url":"https://github.com/pantheon-systems/documentation/pull/936","diff_url":"https://github.com/pantheon-systems/documentation/pull/936.diff","patch_url":"https://github.com/pantheon-systems/documentation/pull/936.patch","issue_url":"https://api.github.com/repos/pantheon-systems/documentation/issues/936","number":936,"state":"open","locked":false,"title":"create adding a services.yml file","user":{"login":"nataliejeremy","id":9138609,"avatar_url":"https://avatars.githubusercontent.com/u/9138609?v=3","gravatar_id":"","url":"https://api.github.com/users/nataliejeremy","html_url":"https://github.com/nataliejeremy","followers_url":"https://api.github.com/users/nataliejeremy/followers","following_url":"https://api.github.com/users/nataliejeremy/following{/other_user}","gists_url":"https://api.github.com/users/nataliejeremy/gists{/gist_id}","starred_url":"https://api.github.com/users/nataliejeremy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nataliejeremy/subscriptions","organizations_url":"https://api.github.com/users/nataliejeremy/orgs","repos_url":"https://api.github.com/users/nataliejeremy/repos","events_url":"https://api.github.com/users/nataliejeremy/events{/privacy}","received_events_url":"https://api.github.com/users/nataliejeremy/received_events","type":"User","site_admin":false},"body":"Closes #920 \r\n@bmackinney @ari-gold Please review--thanks!","created_at":"2015-09-15T20:42:36Z","updated_at":"2015-09-17T20:23:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"15ac029fb06ed7259f71177e585216a726d384e7","assignee":{"login":"nataliejeremy","id":9138609,"avatar_url":"https://avatars.githubusercontent.com/u/9138609?v=3","gravatar_id":"","url":"https://api.github.com/users/nataliejeremy","html_url":"https://github.com/nataliejeremy","followers_url":"https://api.github.com/users/nataliejeremy/followers","following_url":"https://api.github.com/users/nataliejeremy/following{/other_user}","gists_url":"https://api.github.com/users/nataliejeremy/gists{/gist_id}","starred_url":"https://api.github.com/users/nataliejeremy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nataliejeremy/subscriptions","organizations_url":"https://api.github.com/users/nataliejeremy/orgs","repos_url":"https://api.github.com/users/nataliejeremy/repos","events_url":"https://api.github.com/users/nataliejeremy/events{/privacy}","received_events_url":"https://api.github.com/users/nataliejeremy/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/pantheon-systems/documentation/milestones/4","html_url":"https://github.com/pantheon-systems/documentation/milestones/D8","labels_url":"https://api.github.com/repos/pantheon-systems/documentation/milestones/4/labels","id":1305094,"number":4,"title":"D8","description":"","creator":{"login":"rachelwhitton","id":10119525,"avatar_url":"https://avatars.githubusercontent.com/u/10119525?v=3","gravatar_id":"","url":"https://api.github.com/users/rachelwhitton","html_url":"https://github.com/rachelwhitton","followers_url":"https://api.github.com/users/rachelwhitton/followers","following_url":"https://api.github.com/users/rachelwhitton/following{/other_user}","gists_url":"https://api.github.com/users/rachelwhitton/gists{/gist_id}","starred_url":"https://api.github.com/users/rachelwhitton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rachelwhitton/subscriptions","organizations_url":"https://api.github.com/users/rachelwhitton/orgs","repos_url":"https://api.github.com/users/rachelwhitton/repos","events_url":"https://api.github.com/users/rachelwhitton/events{/privacy}","received_events_url":"https://api.github.com/users/rachelwhitton/received_events","type":"User","site_admin":false},"open_issues":27,"closed_issues":1,"state":"open","created_at":"2015-09-14T19:35:11Z","updated_at":"2015-09-16T20:23:49Z","due_on":"2015-10-02T07:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/pantheon-systems/documentation/pulls/936/commits","review_comments_url":"https://api.github.com/repos/pantheon-systems/documentation/pulls/936/comments","review_comment_url":"https://api.github.com/repos/pantheon-systems/documentation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pantheon-systems/documentation/issues/936/comments","statuses_url":"https://api.github.com/repos/pantheon-systems/documentation/statuses/02cd0b3044c47987be77e756b1780e6e556c7c86","head":{"label":"pantheon-systems:920-adding-yml-file","ref":"920-adding-yml-file","sha":"02cd0b3044c47987be77e756b1780e6e556c7c86","user":{"login":"pantheon-systems","id":513357,"avatar_url":"https://avatars.githubusercontent.com/u/513357?v=3","gravatar_id":"","url":"https://api.github.com/users/pantheon-systems","html_url":"https://github.com/pantheon-systems","followers_url":"https://api.github.com/users/pantheon-systems/followers","following_url":"https://api.github.com/users/pantheon-systems/following{/other_user}","gists_url":"https://api.github.com/users/pantheon-systems/gists{/gist_id}","starred_url":"https://api.github.com/users/pantheon-systems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pantheon-systems/subscriptions","organizations_url":"https://api.github.com/users/pantheon-systems/orgs","repos_url":"https://api.github.com/users/pantheon-systems/repos","events_url":"https://api.github.com/users/pantheon-systems/events{/privacy}","received_events_url":"https://api.github.com/users/pantheon-systems/received_events","type":"Organization","site_admin":false},"repo":{"id":26826032,"name":"documentation","full_name":"pantheon-systems/documentation","owner":{"login":"pantheon-systems","id":513357,"avatar_url":"https://avatars.githubusercontent.com/u/513357?v=3","gravatar_id":"","url":"https://api.github.com/users/pantheon-systems","html_url":"https://github.com/pantheon-systems","followers_url":"https://api.github.com/users/pantheon-systems/followers","following_url":"https://api.github.com/users/pantheon-systems/following{/other_user}","gists_url":"https://api.github.com/users/pantheon-systems/gists{/gist_id}","starred_url":"https://api.github.com/users/pantheon-systems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pantheon-systems/subscriptions","organizations_url":"https://api.github.com/users/pantheon-systems/orgs","repos_url":"https://api.github.com/users/pantheon-systems/repos","events_url":"https://api.github.com/users/pantheon-systems/events{/privacy}","received_events_url":"https://api.github.com/users/pantheon-systems/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pantheon-systems/documentation","description":"Pantheon Docs","fork":false,"url":"https://api.github.com/repos/pantheon-systems/documentation","forks_url":"https://api.github.com/repos/pantheon-systems/documentation/forks","keys_url":"https://api.github.com/repos/pantheon-systems/documentation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pantheon-systems/documentation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pantheon-systems/documentation/teams","hooks_url":"https://api.github.com/repos/pantheon-systems/documentation/hooks","issue_events_url":"https://api.github.com/repos/pantheon-systems/documentation/issues/events{/number}","events_url":"https://api.github.com/repos/pantheon-systems/documentation/events","assignees_url":"https://api.github.com/repos/pantheon-systems/documentation/assignees{/user}","branches_url":"https://api.github.com/repos/pantheon-systems/documentation/branches{/branch}","tags_url":"https://api.github.com/repos/pantheon-systems/documentation/tags","blobs_url":"https://api.github.com/repos/pantheon-systems/documentation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pantheon-systems/documentation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pantheon-systems/documentation/git/refs{/sha}","trees_url":"https://api.github.com/repos/pantheon-systems/documentation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pantheon-systems/documentation/statuses/{sha}","languages_url":"https://api.github.com/repos/pantheon-systems/documentation/languages","stargazers_url":"https://api.github.com/repos/pantheon-systems/documentation/stargazers","contributors_url":"https://api.github.com/repos/pantheon-systems/documentation/contributors","subscribers_url":"https://api.github.com/repos/pantheon-systems/documentation/subscribers","subscription_url":"https://api.github.com/repos/pantheon-systems/documentation/subscription","commits_url":"https://api.github.com/repos/pantheon-systems/documentation/commits{/sha}","git_commits_url":"https://api.github.com/repos/pantheon-systems/documentation/git/commits{/sha}","comments_url":"https://api.github.com/repos/pantheon-systems/documentation/comments{/number}","issue_comment_url":"https://api.github.com/repos/pantheon-systems/documentation/issues/comments{/number}","contents_url":"https://api.github.com/repos/pantheon-systems/documentation/contents/{+path}","compare_url":"https://api.github.com/repos/pantheon-systems/documentation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pantheon-systems/documentation/merges","archive_url":"https://api.github.com/repos/pantheon-systems/documentation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pantheon-systems/documentation/downloads","issues_url":"https://api.github.com/repos/pantheon-systems/documentation/issues{/number}","pulls_url":"https://api.github.com/repos/pantheon-systems/documentation/pulls{/number}","milestones_url":"https://api.github.com/repos/pantheon-systems/documentation/milestones{/number}","notifications_url":"https://api.github.com/repos/pantheon-systems/documentation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pantheon-systems/documentation/labels{/name}","releases_url":"https://api.github.com/repos/pantheon-systems/documentation/releases{/id}","created_at":"2014-11-18T19:26:21Z","updated_at":"2015-09-16T13:00:49Z","pushed_at":"2015-09-17T20:20:50Z","git_url":"git://github.com/pantheon-systems/documentation.git","ssh_url":"git@github.com:pantheon-systems/documentation.git","clone_url":"https://github.com/pantheon-systems/documentation.git","svn_url":"https://github.com/pantheon-systems/documentation","homepage":"https://pantheon.io/docs","size":90524,"stargazers_count":27,"watchers_count":27,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":80,"mirror_url":null,"open_issues_count":65,"forks":80,"open_issues":65,"watchers":27,"default_branch":"master"}},"base":{"label":"pantheon-systems:master","ref":"master","sha":"f69893c87a5c5877627e323660b37e6a72757596","user":{"login":"pantheon-systems","id":513357,"avatar_url":"https://avatars.githubusercontent.com/u/513357?v=3","gravatar_id":"","url":"https://api.github.com/users/pantheon-systems","html_url":"https://github.com/pantheon-systems","followers_url":"https://api.github.com/users/pantheon-systems/followers","following_url":"https://api.github.com/users/pantheon-systems/following{/other_user}","gists_url":"https://api.github.com/users/pantheon-systems/gists{/gist_id}","starred_url":"https://api.github.com/users/pantheon-systems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pantheon-systems/subscriptions","organizations_url":"https://api.github.com/users/pantheon-systems/orgs","repos_url":"https://api.github.com/users/pantheon-systems/repos","events_url":"https://api.github.com/users/pantheon-systems/events{/privacy}","received_events_url":"https://api.github.com/users/pantheon-systems/received_events","type":"Organization","site_admin":false},"repo":{"id":26826032,"name":"documentation","full_name":"pantheon-systems/documentation","owner":{"login":"pantheon-systems","id":513357,"avatar_url":"https://avatars.githubusercontent.com/u/513357?v=3","gravatar_id":"","url":"https://api.github.com/users/pantheon-systems","html_url":"https://github.com/pantheon-systems","followers_url":"https://api.github.com/users/pantheon-systems/followers","following_url":"https://api.github.com/users/pantheon-systems/following{/other_user}","gists_url":"https://api.github.com/users/pantheon-systems/gists{/gist_id}","starred_url":"https://api.github.com/users/pantheon-systems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pantheon-systems/subscriptions","organizations_url":"https://api.github.com/users/pantheon-systems/orgs","repos_url":"https://api.github.com/users/pantheon-systems/repos","events_url":"https://api.github.com/users/pantheon-systems/events{/privacy}","received_events_url":"https://api.github.com/users/pantheon-systems/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pantheon-systems/documentation","description":"Pantheon Docs","fork":false,"url":"https://api.github.com/repos/pantheon-systems/documentation","forks_url":"https://api.github.com/repos/pantheon-systems/documentation/forks","keys_url":"https://api.github.com/repos/pantheon-systems/documentation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pantheon-systems/documentation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pantheon-systems/documentation/teams","hooks_url":"https://api.github.com/repos/pantheon-systems/documentation/hooks","issue_events_url":"https://api.github.com/repos/pantheon-systems/documentation/issues/events{/number}","events_url":"https://api.github.com/repos/pantheon-systems/documentation/events","assignees_url":"https://api.github.com/repos/pantheon-systems/documentation/assignees{/user}","branches_url":"https://api.github.com/repos/pantheon-systems/documentation/branches{/branch}","tags_url":"https://api.github.com/repos/pantheon-systems/documentation/tags","blobs_url":"https://api.github.com/repos/pantheon-systems/documentation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pantheon-systems/documentation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pantheon-systems/documentation/git/refs{/sha}","trees_url":"https://api.github.com/repos/pantheon-systems/documentation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pantheon-systems/documentation/statuses/{sha}","languages_url":"https://api.github.com/repos/pantheon-systems/documentation/languages","stargazers_url":"https://api.github.com/repos/pantheon-systems/documentation/stargazers","contributors_url":"https://api.github.com/repos/pantheon-systems/documentation/contributors","subscribers_url":"https://api.github.com/repos/pantheon-systems/documentation/subscribers","subscription_url":"https://api.github.com/repos/pantheon-systems/documentation/subscription","commits_url":"https://api.github.com/repos/pantheon-systems/documentation/commits{/sha}","git_commits_url":"https://api.github.com/repos/pantheon-systems/documentation/git/commits{/sha}","comments_url":"https://api.github.com/repos/pantheon-systems/documentation/comments{/number}","issue_comment_url":"https://api.github.com/repos/pantheon-systems/documentation/issues/comments{/number}","contents_url":"https://api.github.com/repos/pantheon-systems/documentation/contents/{+path}","compare_url":"https://api.github.com/repos/pantheon-systems/documentation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pantheon-systems/documentation/merges","archive_url":"https://api.github.com/repos/pantheon-systems/documentation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pantheon-systems/documentation/downloads","issues_url":"https://api.github.com/repos/pantheon-systems/documentation/issues{/number}","pulls_url":"https://api.github.com/repos/pantheon-systems/documentation/pulls{/number}","milestones_url":"https://api.github.com/repos/pantheon-systems/documentation/milestones{/number}","notifications_url":"https://api.github.com/repos/pantheon-systems/documentation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pantheon-systems/documentation/labels{/name}","releases_url":"https://api.github.com/repos/pantheon-systems/documentation/releases{/id}","created_at":"2014-11-18T19:26:21Z","updated_at":"2015-09-16T13:00:49Z","pushed_at":"2015-09-17T20:20:50Z","git_url":"git://github.com/pantheon-systems/documentation.git","ssh_url":"git@github.com:pantheon-systems/documentation.git","clone_url":"https://github.com/pantheon-systems/documentation.git","svn_url":"https://github.com/pantheon-systems/documentation","homepage":"https://pantheon.io/docs","size":90524,"stargazers_count":27,"watchers_count":27,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":80,"mirror_url":null,"open_issues_count":65,"forks":80,"open_issues":65,"watchers":27,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pantheon-systems/documentation/pulls/936"},"html":{"href":"https://github.com/pantheon-systems/documentation/pull/936"},"issue":{"href":"https://api.github.com/repos/pantheon-systems/documentation/issues/936"},"comments":{"href":"https://api.github.com/repos/pantheon-systems/documentation/issues/936/comments"},"review_comments":{"href":"https://api.github.com/repos/pantheon-systems/documentation/pulls/936/comments"},"review_comment":{"href":"https://api.github.com/repos/pantheon-systems/documentation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pantheon-systems/documentation/pulls/936/commits"},"statuses":{"href":"https://api.github.com/repos/pantheon-systems/documentation/statuses/02cd0b3044c47987be77e756b1780e6e556c7c86"}}}}