{"action":"created","issue":{"url":"https://api.github.com/repos/dg/ftp-deployment/issues/75","repository_url":"https://api.github.com/repos/dg/ftp-deployment","labels_url":"https://api.github.com/repos/dg/ftp-deployment/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/dg/ftp-deployment/issues/75/comments","events_url":"https://api.github.com/repos/dg/ftp-deployment/issues/75/events","html_url":"https://github.com/dg/ftp-deployment/issues/75","id":115961863,"number":75,"title":"ask for credentials","user":{"login":"TheJetlag","id":6178507,"avatar_url":"https://avatars.githubusercontent.com/u/6178507?v=3","gravatar_id":"","url":"https://api.github.com/users/TheJetlag","html_url":"https://github.com/TheJetlag","followers_url":"https://api.github.com/users/TheJetlag/followers","following_url":"https://api.github.com/users/TheJetlag/following{/other_user}","gists_url":"https://api.github.com/users/TheJetlag/gists{/gist_id}","starred_url":"https://api.github.com/users/TheJetlag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheJetlag/subscriptions","organizations_url":"https://api.github.com/users/TheJetlag/orgs","repos_url":"https://api.github.com/users/TheJetlag/repos","events_url":"https://api.github.com/users/TheJetlag/events{/privacy}","received_events_url":"https://api.github.com/users/TheJetlag/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-09T20:45:20Z","updated_at":"2016-02-24T19:04:40Z","closed_at":"2016-02-10T14:44:26Z","body":"I really don't like storing my ftp credentials in the code. Is there any way for providing credentials on request? "},"comment":{"url":"https://api.github.com/repos/dg/ftp-deployment/issues/comments/188407782","html_url":"https://github.com/dg/ftp-deployment/issues/75#issuecomment-188407782","issue_url":"https://api.github.com/repos/dg/ftp-deployment/issues/75","id":188407782,"user":{"login":"tmsbrg","id":3786254,"avatar_url":"https://avatars.githubusercontent.com/u/3786254?v=3","gravatar_id":"","url":"https://api.github.com/users/tmsbrg","html_url":"https://github.com/tmsbrg","followers_url":"https://api.github.com/users/tmsbrg/followers","following_url":"https://api.github.com/users/tmsbrg/following{/other_user}","gists_url":"https://api.github.com/users/tmsbrg/gists{/gist_id}","starred_url":"https://api.github.com/users/tmsbrg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmsbrg/subscriptions","organizations_url":"https://api.github.com/users/tmsbrg/orgs","repos_url":"https://api.github.com/users/tmsbrg/repos","events_url":"https://api.github.com/users/tmsbrg/events{/privacy}","received_events_url":"https://api.github.com/users/tmsbrg/received_events","type":"User","site_admin":false},"created_at":"2016-02-24T19:04:40Z","updated_at":"2016-02-24T19:04:40Z","body":"If you're not very comfortable writing PHP(like me) you can make a Bash script like this:\r\n\r\n```bash\r\n#!/bin/bash\r\nTMP=_deployment.ini.tmp\r\nread -sp \"Password: \" PASSWORD\r\necho\r\nsed \"s/PASSWORD/$PASSWORD/\" _deployment.ini > $TMP &&\r\n    jekyll build &&\r\n    deployment $TMP\r\nshred -un 1 $TMP\r\n```\r\n\r\nIt takes the _deployment.ini file(I put an underscore in front of it for Jekyll), and replaces wherever you type PASSWORD with the password you enter."}}