{"__v":0,"_id":"56a919119ec7660d002e08f2","initVersion":{"_id":"56a75c2cfc62900d00024bc1","version":"1.1.4"},"project":"54348ec95b10711400c6c445","tags":[],"user":{"_id":"5435e00ad7d8700800bbec51","username":"","name":"Jason Stiebs"},"createdAt":"2016-01-27T19:22:57.608Z","changelog":[],"body":"## Phoenix 1.1.1 to 1.1.2 upgrade instructions\n\nCheck out https://gist.github.com/chrismccord/d5bc5f8e38c8f76cad33 for latest details\n> Optional upgrade for new brunch features\n\n### Update your phoenix deps\n\n```elixir\ndef deps do\n  [{:phoenix, \"~> 1.1.2\"},\n  ...]\nend\n```\n\nNow, update your phoenix deps to grab the latest minor releases:\n\n```console\n$ mix deps.update phoenix phoenix_html phoenix_live_reload\n```\n\n### Update your `package.json`\n> (for umbrellas the `file` prefix will need `file:../../deps/`)\n\n```javascript\n{\n  \"repository\": {\n  },\n  \"dependencies\": {\n    \"babel-brunch\": \"^6.0.0\",\n    \"brunch\": \"^2.1.1\",\n    \"clean-css-brunch\": \">= 1.0 < 1.8\",\n    \"css-brunch\": \">= 1.0 < 1.8\",\n    \"javascript-brunch\": \">= 1.0 < 1.8\",\n    \"uglify-js-brunch\": \">= 1.0 < 1.8\",\n    \"phoenix\": \"file:deps/phoenix\",\n    \"phoenix_html\": \"file:deps/phoenix_html\"\n  }\n}\n```\n\nAnd run `$ npm install` to bring in the new node deps\n\n### Update you brunch-config.js:\n\nRemove phoenix and phoenix_html from your `watched` configuration:\n\n```diff\n  paths: {\n    // Dependencies and current project directories to watch\n    watched: [\n-     \"deps/phoenix/web/static\",\n-     \"deps/phoenix_html/web/static\",\n      \"web/static\",\n      \"test/static\"\n    ],\n\n    // Where to compile files to\n    public: \"priv/static\"\n  },\n```\n\nAdd `npm.whitelist` to your `npm` config:\n\n```diff\n  npm: {\n    enabled: true,\n+   whitelist: [\"phoenix\", \"phoenix_html\"]\n  }\n```\n\n### Update your js imports\n\n```diff\n- import \"deps/phoenix_html/web/static/js/phoenix_html\"\n+ import \"phoenix_html\"\n\n- import {Socket} from \"deps/phoenix/web/static/js/phoenix\"\n+ import {Socket} from \"phoenix\"\n```\n\n\n## Test it\n\n    $ mix phoenix.server\n    07 Jan 16:16:59 - info: compiled 5 files into 2 files, copied 3 in 1.2 sec","slug":"upgrading-from-111-to-112","title":"Upgrading from 1.1.1 to 1.1.2"}

Upgrading from 1.1.1 to 1.1.2


## Phoenix 1.1.1 to 1.1.2 upgrade instructions Check out https://gist.github.com/chrismccord/d5bc5f8e38c8f76cad33 for latest details > Optional upgrade for new brunch features ### Update your phoenix deps ```elixir def deps do [{:phoenix, "~> 1.1.2"}, ...] end ``` Now, update your phoenix deps to grab the latest minor releases: ```console $ mix deps.update phoenix phoenix_html phoenix_live_reload ``` ### Update your `package.json` > (for umbrellas the `file` prefix will need `file:../../deps/`) ```javascript { "repository": { }, "dependencies": { "babel-brunch": "^6.0.0", "brunch": "^2.1.1", "clean-css-brunch": ">= 1.0 < 1.8", "css-brunch": ">= 1.0 < 1.8", "javascript-brunch": ">= 1.0 < 1.8", "uglify-js-brunch": ">= 1.0 < 1.8", "phoenix": "file:deps/phoenix", "phoenix_html": "file:deps/phoenix_html" } } ``` And run `$ npm install` to bring in the new node deps ### Update you brunch-config.js: Remove phoenix and phoenix_html from your `watched` configuration: ```diff paths: { // Dependencies and current project directories to watch watched: [ - "deps/phoenix/web/static", - "deps/phoenix_html/web/static", "web/static", "test/static" ], // Where to compile files to public: "priv/static" }, ``` Add `npm.whitelist` to your `npm` config: ```diff npm: { enabled: true, + whitelist: ["phoenix", "phoenix_html"] } ``` ### Update your js imports ```diff - import "deps/phoenix_html/web/static/js/phoenix_html" + import "phoenix_html" - import {Socket} from "deps/phoenix/web/static/js/phoenix" + import {Socket} from "phoenix" ``` ## Test it $ mix phoenix.server 07 Jan 16:16:59 - info: compiled 5 files into 2 files, copied 3 in 1.2 sec