{"action":"created","issue":{"url":"https://api.github.com/repos/nystudio107/craft-imageoptimize/issues/78","repository_url":"https://api.github.com/repos/nystudio107/craft-imageoptimize","labels_url":"https://api.github.com/repos/nystudio107/craft-imageoptimize/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/nystudio107/craft-imageoptimize/issues/78/comments","events_url":"https://api.github.com/repos/nystudio107/craft-imageoptimize/issues/78/events","html_url":"https://github.com/nystudio107/craft-imageoptimize/issues/78","id":315773743,"node_id":"MDU6SXNzdWUzMTU3NzM3NDM=","number":78,"title":"Volume Settings / Sync between Environments ","user":{"login":"davidhellmann","id":764292,"node_id":"MDQ6VXNlcjc2NDI5Mg==","avatar_url":"https://avatars3.githubusercontent.com/u/764292?v=4","gravatar_id":"","url":"https://api.github.com/users/davidhellmann","html_url":"https://github.com/davidhellmann","followers_url":"https://api.github.com/users/davidhellmann/followers","following_url":"https://api.github.com/users/davidhellmann/following{/other_user}","gists_url":"https://api.github.com/users/davidhellmann/gists{/gist_id}","starred_url":"https://api.github.com/users/davidhellmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidhellmann/subscriptions","organizations_url":"https://api.github.com/users/davidhellmann/orgs","repos_url":"https://api.github.com/users/davidhellmann/repos","events_url":"https://api.github.com/users/davidhellmann/events{/privacy}","received_events_url":"https://api.github.com/users/davidhellmann/received_events","type":"User","site_admin":false},"labels":[{"id":558233476,"node_id":"MDU6TGFiZWw1NTgyMzM0NzY=","url":"https://api.github.com/repos/nystudio107/craft-imageoptimize/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-04-19T08:22:40Z","updated_at":"2018-08-20T17:33:53Z","closed_at":null,"author_association":"NONE","body":"I'm not sure if I do something wrong or what going wrong here but I try to explain. \r\n\r\n**general.php**\r\nMy aliases\r\n```\r\n'aliases' => [\r\n    '@basePath' => getenv('CRAFTENV_BASE_PATH'),\r\n    '@baseUrl' => getenv('CRAFTENV_BASE_URL'),\r\n],\r\n```\r\n\r\n**volumes.php**\r\n```\r\nreturn [\r\n\r\n    // All environments\r\n    '*' => [\r\n        'siteImages' => [\r\n            'path' => '@basePath/uploads/images/',\r\n            'url' => '@baseUrl/uploads/images/',\r\n        ],\r\n        'siteProducts' => [\r\n            'path' => '@basePath/uploads/products/',\r\n            'url' => '@baseUrl/uploads/products/',\r\n        ],\r\n        'siteDownloads' => [\r\n            'path' => '@basePath/uploads/downloads/',\r\n            'url' =>'@baseUrl/uploads/downloads/',\r\n        ],\r\n        'siteGraphics' => [\r\n            'path' => '@basePath/uploads/graphics/',\r\n            'url' => '@baseUrl/uploads/graphics/',\r\n        ],\r\n        'siteUsers' => [\r\n            'path' => '@basePath/uploads/users/',\r\n            'url' =>'@baseUrl/uploads/users/',\r\n        ],\r\n        'test' => [\r\n            'path' => '@basePath/uploads/test/',\r\n            'url' =>'@baseUrl/uploads/test/',\r\n        ],\r\n    ],\r\n\r\n    // Live (production) environment\r\n    'live'  => [\r\n    ],\r\n\r\n    // Staging (pre-production) environment\r\n    'staging'  => [\r\n    ],\r\n\r\n    // Staging (pre-production) environment\r\n    'stagingNeubau'  => [\r\n    ],\r\n\r\n    // Local (development) environment\r\n    'local'  => [\r\n    ],\r\n];\r\n```\r\n\r\nSo now, when I'm look into the backend it looks fine:\r\n![image](https://user-images.githubusercontent.com/764292/38979677-213871ce-43bb-11e8-8766-86ae15cf71dd.png)\r\n\r\n\r\nBut when I look into the DB I've absolute URLs\r\n```\r\n{\r\n  \"optimizedImageUrls\": {\r\n    \"200\": \"https://stage.foobarbaz.com/uploads/images/_200x133_crop_center-center_82_line/btr-ranger-5.jpg\",\r\n    \"400\": \"https://stage.foobarbaz.com/uploads/images/_400x266_crop_center-center_82_line/btr-ranger-5.jpg\",\r\n    \"800\": \"https://stage.foobarbaz.com/uploads/images/_800x533_crop_center-center_82_line/btr-ranger-5.jpg\",\r\n    \"1200\": \"https://stage.foobarbaz.com/uploads/images/_1200x800_crop_center-center_82_line/btr-ranger-5.jpg\"\r\n  },\r\n  \"optimizedWebPImageUrls\": {\r\n    \"200\": \"https://stage.foobarbaz.com/uploads/images/_200x133_crop_center-center_82_line/btr-ranger-5.jpg.webp\",\r\n    \"400\": \"https://stage.foobarbaz.com/uploads/images/_400x266_crop_center-center_82_line/btr-ranger-5.jpg.webp\",\r\n    \"800\": \"https://stage.foobarbaz.com/uploads/images/_800x533_crop_center-center_82_line/btr-ranger-5.jpg.webp\",\r\n    \"1200\": \"https://stage.foobarbaz.com/uploads/images/_1200x800_crop_center-center_82_line/btr-ranger-5.jpg.webp\"\r\n  },\r\n  \"variantSourceWidths\": [\r\n    \"1200\",\r\n    \"800\",\r\n    \"400\",\r\n    \"200\"\r\n  ],\r\n  \"focalPoint\": {\r\n    \"x\": 0.5,\r\n    \"y\": 0.5\r\n  },\r\n  \"originalImageWidth\": \"4000\",\r\n  \"originalImageHeight\": \"2667\",\r\n  \"placeholder\": \"/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDABALDA4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkzODdASFxOQERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2P/2wBDARESEhgVGC8aGi9jQjhCY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2P/wAARCAAKABADASIAAhEBAxEB/8QAFgABAQEAAAAAAAAAAAAAAAAAAwIE/8QAIBAAAQMEAwEBAAAAAAAAAAAAAQIREgADBCEFMUETYf/EABQBAQAAAAAAAAAAAAAAAAAAAAL/xAAVEQEBAAAAAAAAAAAAAAAAAAAAEf/aAAwDAQACEQMRAD8A04q8izAi9MrIaSz1tnH7U5Gdn40xcTcBG3BcDXVLjEnkLSSSUhSmHgal5RR+8XMVRkPDv2iUf//Z\",\r\n  \"placeholderSvg\": \"\",\r\n  \"colorPalette\": [\r\n    \"#cabfb9\",\r\n    \"#363b3a\",\r\n    \"#797c79\",\r\n    \"#61584e\",\r\n    \"#716b55\"\r\n  ],\r\n  \"placeholderWidth\": 1200,\r\n  \"placeholderHeight\": 800\r\n}\r\n```\r\n\r\nWhen I'm sync the DB via craft-scripts I've always the wrong URLs :(\r\nWhat's wrong?"},"comment":{"url":"https://api.github.com/repos/nystudio107/craft-imageoptimize/issues/comments/414399714","html_url":"https://github.com/nystudio107/craft-imageoptimize/issues/78#issuecomment-414399714","issue_url":"https://api.github.com/repos/nystudio107/craft-imageoptimize/issues/78","id":414399714,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDM5OTcxNA==","user":{"login":"stevehurst","id":20077,"node_id":"MDQ6VXNlcjIwMDc3","avatar_url":"https://avatars0.githubusercontent.com/u/20077?v=4","gravatar_id":"","url":"https://api.github.com/users/stevehurst","html_url":"https://github.com/stevehurst","followers_url":"https://api.github.com/users/stevehurst/followers","following_url":"https://api.github.com/users/stevehurst/following{/other_user}","gists_url":"https://api.github.com/users/stevehurst/gists{/gist_id}","starred_url":"https://api.github.com/users/stevehurst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevehurst/subscriptions","organizations_url":"https://api.github.com/users/stevehurst/orgs","repos_url":"https://api.github.com/users/stevehurst/repos","events_url":"https://api.github.com/users/stevehurst/events{/privacy}","received_events_url":"https://api.github.com/users/stevehurst/received_events","type":"User","site_admin":false},"created_at":"2018-08-20T17:33:53Z","updated_at":"2018-08-20T17:33:53Z","author_association":"NONE","body":"@khalwat  @basePath and @baseUrl\r\n\r\n`\r\n    // All environments\r\n    '*' => [\r\n        'ASSET_HANDLE' => [\r\n            'path' => '@basePath/ASSET_PATH',\r\n            'url' => '@baseUrl/ASSET_PATH',\r\n        ],\r\n    ],\r\n`"}}
{"actor":{"display_login":"stevehurst"}}