{"push_id":1136837647,"size":1,"distinct_size":1,"ref":"refs/heads/feature/support-environments","head":"98d525194be22a3f285b2d77f1bf01e4f9a2f945","before":"56d35efeeb040526d5411349326e5bc508f9b51b","commits":[{"sha":"98d525194be22a3f285b2d77f1bf01e4f9a2f945","author":{"name":"Remi Barraquand","email":"80cd025df02680755871ffc10a22624c746ed388@remibarraquand.com"},"message":"Support nanoc environments\n\nIntroduce basic support for nanoc environment:\n- nanoc command is updated to include --env argument\n- config are overriden using the active environment if any\n- unless define in environment, output_dir is {{output_dir}}/{{env_name}}\n\nSetting environments is done in nanoc.yaml using the `environments` property.\nExample usage is:\n\n```\noutput_dir: output\n\nenvironments:\n  default: &default\n    base_url: ...\n    ...\n  development:\n    <<: *default\n    base_url: ...\n  production:\n    <<: *default\n    base_url: ...\n  yet_another_env:\n    <<: *default\n    base_url: ...\n    output_dir: build\n```\n\nSelecting working environment can be done:\n- using environment variable `NANOC_ENVIRONMENT`\n- using `nanoc --env=[<value>]`","distinct":true,"url":"https://api.github.com/repos/barraq/nanoc/commits/98d525194be22a3f285b2d77f1bf01e4f9a2f945"}]}
{"actor":{"display_login":"barraq"}}