{"action":"opened","issue":{"url":"https://api.github.com/repos/nanobox-io/nanobox-docs/issues/22","repository_url":"https://api.github.com/repos/nanobox-io/nanobox-docs","labels_url":"https://api.github.com/repos/nanobox-io/nanobox-docs/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/nanobox-io/nanobox-docs/issues/22/comments","events_url":"https://api.github.com/repos/nanobox-io/nanobox-docs/issues/22/events","html_url":"https://github.com/nanobox-io/nanobox-docs/issues/22","id":208309507,"number":22,"title":"Extra_steps is missing some documentation","user":{"login":"glinton","id":2653109,"avatar_url":"https://avatars.githubusercontent.com/u/2653109?v=3","gravatar_id":"","url":"https://api.github.com/users/glinton","html_url":"https://github.com/glinton","followers_url":"https://api.github.com/users/glinton/followers","following_url":"https://api.github.com/users/glinton/following{/other_user}","gists_url":"https://api.github.com/users/glinton/gists{/gist_id}","starred_url":"https://api.github.com/users/glinton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glinton/subscriptions","organizations_url":"https://api.github.com/users/glinton/orgs","repos_url":"https://api.github.com/users/glinton/repos","events_url":"https://api.github.com/users/glinton/events{/privacy}","received_events_url":"https://api.github.com/users/glinton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-17T01:55:55Z","updated_at":"2017-02-17T01:55:55Z","closed_at":null,"body":"`extra_steps` is documented [multiple](https://github.com/nanobox-io/nanobox-docs/blob/3fc54c85cf8f177c62cf957f907269b390aa8f91/source/app-config/build-deploy-hooks.html.md.erb#L18) [times](https://github.com/nanobox-io/nanobox-docs/blob/3fc54c85cf8f177c62cf957f907269b390aa8f91/source/boxfile/run-config.html.md#extra-steps) for the `run.config` portion of the boxfile, but it [exists in the `deploy.config`](https://github.com/nanobox-io/nanobox-docker-build/blob/95b7b93e14838a3e4aad711b6d59717a25c29620/files/opt/nanobox/hooks/compile#L90) node as well, and should be documented.\r\n\r\nIf you are needing an example, my use case for needing it was to copy assets into my 'build' prior to deploying a golang app. I originally used `runtime.config.extra_steps` but found that a step somewhere would \"Cleaning up any previous releases\" and undid my copy. After looking through the build hooks and finding `deploy.config`'s `extra_steps`, the copied files persisted.\r\n\r\n>boxfile.yml (working)\r\n>```\r\n>deploy.config:\r\n>  extra_steps:\r\n>    - cp -r $CODE_DIR/app $APP_DIR/app # Move static files into 'build'\r\n>```\r\n**Note:** The `CODE_DIR` and `APP_DIR` variables may only be present in the golang engine at this time"}}
{"actor":{"display_login":"glinton"}}