{"action":"created","issue":{"url":"https://api.github.com/repos/middleman/middleman/issues/1748","labels_url":"https://api.github.com/repos/middleman/middleman/issues/1748/labels{/name}","comments_url":"https://api.github.com/repos/middleman/middleman/issues/1748/comments","events_url":"https://api.github.com/repos/middleman/middleman/issues/1748/events","html_url":"https://github.com/middleman/middleman/issues/1748","id":126075605,"number":1748,"title":"environments/production.rb not working in 4.0.0","user":{"login":"alshamma","id":582138,"avatar_url":"https://avatars.githubusercontent.com/u/582138?v=3","gravatar_id":"","url":"https://api.github.com/users/alshamma","html_url":"https://github.com/alshamma","followers_url":"https://api.github.com/users/alshamma/followers","following_url":"https://api.github.com/users/alshamma/following{/other_user}","gists_url":"https://api.github.com/users/alshamma/gists{/gist_id}","starred_url":"https://api.github.com/users/alshamma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alshamma/subscriptions","organizations_url":"https://api.github.com/users/alshamma/orgs","repos_url":"https://api.github.com/users/alshamma/repos","events_url":"https://api.github.com/users/alshamma/events{/privacy}","received_events_url":"https://api.github.com/users/alshamma/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-12T01:20:45Z","updated_at":"2016-01-12T21:45:27Z","closed_at":"2016-01-12T21:45:27Z","body":"According to https://middlemanapp.com/basics/upgrade-v4/:\r\n> Like Rails, we support automatically loading environment specific config from a predefined path. If you have a lot of production config, create a file at environments/production.rb and its contents will automatically be evaluated when in production.\r\n\r\nI am unable to get this to work on my machine: OS X, El Capitan, middleman-cli 4.0.0. I expected to find the values in ENV. I also tried putting the file in config/environments/production.rb. \r\n\r\nI was hoping that other environments would work, too. E.g., staging.rb, development.rb. \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/middleman/middleman/issues/comments/171068052","html_url":"https://github.com/middleman/middleman/issues/1748#issuecomment-171068052","issue_url":"https://api.github.com/repos/middleman/middleman/issues/1748","id":171068052,"user":{"login":"alshamma","id":582138,"avatar_url":"https://avatars.githubusercontent.com/u/582138?v=3","gravatar_id":"","url":"https://api.github.com/users/alshamma","html_url":"https://github.com/alshamma","followers_url":"https://api.github.com/users/alshamma/followers","following_url":"https://api.github.com/users/alshamma/following{/other_user}","gists_url":"https://api.github.com/users/alshamma/gists{/gist_id}","starred_url":"https://api.github.com/users/alshamma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alshamma/subscriptions","organizations_url":"https://api.github.com/users/alshamma/orgs","repos_url":"https://api.github.com/users/alshamma/repos","events_url":"https://api.github.com/users/alshamma/events{/privacy}","received_events_url":"https://api.github.com/users/alshamma/received_events","type":"User","site_admin":false},"created_at":"2016-01-12T21:45:27Z","updated_at":"2016-01-12T21:45:27Z","body":"Just to clarify, am I correct in understanding that when configure :production is first encountered, that environments/production.rb will be executed? That seems to match my experiment just now. \r\n\r\nI see that environments/development.rb is also supported, though I don't see it in the docs. \r\n\r\nThanks!"}}