{"action":"created","issue":{"url":"https://api.github.com/repos/fredguest/rails-api-react-demo-finished/issues/1","labels_url":"https://api.github.com/repos/fredguest/rails-api-react-demo-finished/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/fredguest/rails-api-react-demo-finished/issues/1/comments","events_url":"https://api.github.com/repos/fredguest/rails-api-react-demo-finished/issues/1/events","html_url":"https://github.com/fredguest/rails-api-react-demo-finished/issues/1","id":60597699,"number":1,"title":"bundle.js loaded from public/bundle.js, not loaded from webpack-dev-server, in development","user":{"login":"bdefore","id":142472,"avatar_url":"https://avatars.githubusercontent.com/u/142472?v=3","gravatar_id":"","url":"https://api.github.com/users/bdefore","html_url":"https://github.com/bdefore","followers_url":"https://api.github.com/users/bdefore/followers","following_url":"https://api.github.com/users/bdefore/following{/other_user}","gists_url":"https://api.github.com/users/bdefore/gists{/gist_id}","starred_url":"https://api.github.com/users/bdefore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdefore/subscriptions","organizations_url":"https://api.github.com/users/bdefore/orgs","repos_url":"https://api.github.com/users/bdefore/repos","events_url":"https://api.github.com/users/bdefore/events{/privacy}","received_events_url":"https://api.github.com/users/bdefore/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-11T01:41:00Z","updated_at":"2015-03-11T07:03:57Z","closed_at":null,"body":"Perhaps I missed a step in your instructions, but I'm unable to see my changes reflected when editing .jsx files.\r\n\r\nI've cloned the repo, run bundle install, npm install (which generates a public/bundle.js). I noticed that config/environments/development-example.rb is in your starter repo but not in the finished one. Perhaps that should be in here too?\r\n\r\nI copied over config/environments/development-example.rb to config/environments/development.rb and then added five environment variables filled out.\r\n\r\n```\r\n  ENV['SECRET_KEY_BASE'] = '{MY_SECRET_KEY_BASE}'\r\n  ENV['TWITTER_CONSUMER_KEY'] = '{MY_KEY}'\r\n  ENV['TWITTER_CONSUMER_SECRET'] = '{MY_SECRET}'\r\n  ENV['ORIGIN'] = 'http://localhost:8080'\r\n  ENV['OAUTH_CALLBACK'] = 'http://127.0.0.1:3000/access_token'\r\n```\r\n\r\nI can now run ```rails s -b 127.0.0.1``` in one terminal window and ```npm run devserve``` in another and I am able to open localhost:3000 and authenticate fine with twitter and add blabs.\r\n\r\nUnfortunately, I think I missed a step because I'm not seeing my jsx changes reflected and I'm wondering if our routes are setup correctly in Rails. If I edit a jsx file, I can see webpack log out that it is rebuilding. The public/bundle.js file is unchanged. This is to be expected since we shouldn't be using that file anyway. But if I delete that file and return to localhost:3000, the page doesn't render. It makes a request for bundle.js and gets what looks like index.html for a response, and tries to execute that HTML as JavaScript. It's as if it's not routing correctly to the webpack dev server. If I go to localhost:8080 I can see the page rendering with my latest updates. If I run ```npm run devbuild``` it generates public/bundle.js and I can load the page, but I'd rather not run that manually each time.\r\n\r\nDid I miss something?"},"comment":{"url":"https://api.github.com/repos/fredguest/rails-api-react-demo-finished/issues/comments/78214581","html_url":"https://github.com/fredguest/rails-api-react-demo-finished/issues/1#issuecomment-78214581","issue_url":"https://api.github.com/repos/fredguest/rails-api-react-demo-finished/issues/1","id":78214581,"user":{"login":"fredguest","id":1145624,"avatar_url":"https://avatars.githubusercontent.com/u/1145624?v=3","gravatar_id":"","url":"https://api.github.com/users/fredguest","html_url":"https://github.com/fredguest","followers_url":"https://api.github.com/users/fredguest/followers","following_url":"https://api.github.com/users/fredguest/following{/other_user}","gists_url":"https://api.github.com/users/fredguest/gists{/gist_id}","starred_url":"https://api.github.com/users/fredguest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fredguest/subscriptions","organizations_url":"https://api.github.com/users/fredguest/orgs","repos_url":"https://api.github.com/users/fredguest/repos","events_url":"https://api.github.com/users/fredguest/events{/privacy}","received_events_url":"https://api.github.com/users/fredguest/received_events","type":"User","site_admin":false},"created_at":"2015-03-11T07:03:57Z","updated_at":"2015-03-11T07:03:57Z","body":"nice! no prob. ya it's very easy to mixup on the first run through. glad it's sorted, will close this now."}}