{"action":"created","issue":{"url":"https://api.github.com/repos/mia81514/weddday/issues/10","labels_url":"https://api.github.com/repos/mia81514/weddday/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/mia81514/weddday/issues/10/comments","events_url":"https://api.github.com/repos/mia81514/weddday/issues/10/events","html_url":"https://github.com/mia81514/weddday/pull/10","id":117378763,"number":10,"title":"Feature/react_on_rails (原來讓react到rails上面這麼容易)","user":{"login":"pppp22591558","id":7845386,"avatar_url":"https://avatars.githubusercontent.com/u/7845386?v=3","gravatar_id":"","url":"https://api.github.com/users/pppp22591558","html_url":"https://github.com/pppp22591558","followers_url":"https://api.github.com/users/pppp22591558/followers","following_url":"https://api.github.com/users/pppp22591558/following{/other_user}","gists_url":"https://api.github.com/users/pppp22591558/gists{/gist_id}","starred_url":"https://api.github.com/users/pppp22591558/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pppp22591558/subscriptions","organizations_url":"https://api.github.com/users/pppp22591558/orgs","repos_url":"https://api.github.com/users/pppp22591558/repos","events_url":"https://api.github.com/users/pppp22591558/events{/privacy}","received_events_url":"https://api.github.com/users/pppp22591558/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-17T15:29:07Z","updated_at":"2015-11-23T03:43:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mia81514/weddday/pulls/10","html_url":"https://github.com/mia81514/weddday/pull/10","diff_url":"https://github.com/mia81514/weddday/pull/10.diff","patch_url":"https://github.com/mia81514/weddday/pull/10.patch"},"body":"=============更新==================\r\n\r\n需要先在電腦安裝[foreman(點我下載)](http://assets.foreman.io/foreman/foreman.pkg) \r\n先cd到client ```npm install```\r\n成功之後回到rails專案資料夾 ```foreman start -f Procfile.dev```\r\n這個可以直接一邊開rails dev server一邊執行我的node script然後開啟兩個localhost\r\nlocalhost:3000 => 一般的rails dev server\r\nlocalhost:4000 => 前端專用 在client資料夾裡一變動東西會自動hot reload\r\n\r\n===================================\r\n加了兩個gem: \"react_on_rails\" 和 \"therubyracer\" 讓react可以很容易跟rails整合\r\n\r\nclient裡面的東西各位就不用管了還是那個人的範例code\r\nconfig/initializers/assets.rb 是把client的css fonts之類的加到precompile list裡\r\nconfig/initializers/react_on_rails.rb 是讓rails可以實現react的sever rendering （順道一提這個在幫你優的專案似乎不能用還正在找解法）\r\n"},"comment":{"url":"https://api.github.com/repos/mia81514/weddday/issues/comments/158846559","html_url":"https://github.com/mia81514/weddday/pull/10#issuecomment-158846559","issue_url":"https://api.github.com/repos/mia81514/weddday/issues/10","id":158846559,"user":{"login":"pppp22591558","id":7845386,"avatar_url":"https://avatars.githubusercontent.com/u/7845386?v=3","gravatar_id":"","url":"https://api.github.com/users/pppp22591558","html_url":"https://github.com/pppp22591558","followers_url":"https://api.github.com/users/pppp22591558/followers","following_url":"https://api.github.com/users/pppp22591558/following{/other_user}","gists_url":"https://api.github.com/users/pppp22591558/gists{/gist_id}","starred_url":"https://api.github.com/users/pppp22591558/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pppp22591558/subscriptions","organizations_url":"https://api.github.com/users/pppp22591558/orgs","repos_url":"https://api.github.com/users/pppp22591558/repos","events_url":"https://api.github.com/users/pppp22591558/events{/privacy}","received_events_url":"https://api.github.com/users/pppp22591558/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T03:43:11Z","updated_at":"2015-11-23T03:43:11Z","body":"已更新試試看吧"}}