{"action":"closed","issue":{"url":"https://api.github.com/repos/bem-site/gorshochek/issues/49","repository_url":"https://api.github.com/repos/bem-site/gorshochek","labels_url":"https://api.github.com/repos/bem-site/gorshochek/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/bem-site/gorshochek/issues/49/comments","events_url":"https://api.github.com/repos/bem-site/gorshochek/issues/49/events","html_url":"https://github.com/bem-site/gorshochek/issues/49","id":145965749,"number":49,"title":"process-doc-images.js: provide ability to pass root prefix for image url","user":{"login":"vithar","id":171723,"avatar_url":"https://avatars.githubusercontent.com/u/171723?v=3","gravatar_id":"","url":"https://api.github.com/users/vithar","html_url":"https://github.com/vithar","followers_url":"https://api.github.com/users/vithar/followers","following_url":"https://api.github.com/users/vithar/following{/other_user}","gists_url":"https://api.github.com/users/vithar/gists{/gist_id}","starred_url":"https://api.github.com/users/vithar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vithar/subscriptions","organizations_url":"https://api.github.com/users/vithar/orgs","repos_url":"https://api.github.com/users/vithar/repos","events_url":"https://api.github.com/users/vithar/events{/privacy}","received_events_url":"https://api.github.com/users/vithar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"tormozz48","id":996162,"avatar_url":"https://avatars.githubusercontent.com/u/996162?v=3","gravatar_id":"","url":"https://api.github.com/users/tormozz48","html_url":"https://github.com/tormozz48","followers_url":"https://api.github.com/users/tormozz48/followers","following_url":"https://api.github.com/users/tormozz48/following{/other_user}","gists_url":"https://api.github.com/users/tormozz48/gists{/gist_id}","starred_url":"https://api.github.com/users/tormozz48/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tormozz48/subscriptions","organizations_url":"https://api.github.com/users/tormozz48/orgs","repos_url":"https://api.github.com/users/tormozz48/repos","events_url":"https://api.github.com/users/tormozz48/events{/privacy}","received_events_url":"https://api.github.com/users/tormozz48/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2016-04-05T11:53:39Z","updated_at":"2016-04-30T16:34:56Z","closed_at":"2016-04-30T16:34:56Z","body":"Сейчас путь к директории куда складывать файлы после заморозки и префикс адреса финальной картинки — одно и тоже.\r\n\r\nНужно сделать, чтобы путь к статике на диске был как сейчас (/static), а префикс для картинки передавался параметром. В dev-режиме это будет `/bem.info/ru`, а в prod-режиме '/'. Сейчас я закостылял в коде `bem.info` и пути к картинкам правильные только в prod-режиме."}}