Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test out proxying to main rails server from hot module reload (webpack-dev server) #133

Closed
justin808 opened this issue Oct 29, 2015 · 4 comments

Comments

@justin808
Copy link
Member

I think we could start the hot reload server with an env var (or even start on different ports in the proc file!) and show this off.

  • Port 3000 for Rails
  • Port 4000 for Webpack Dev Server, proxy last
  • Port 5000 for Webpack Dev Server, using proxy first

By Proxy first or last, that will determine if the callbacks in server.js or the rails server handle the API calls.

@justin808
Copy link
Member Author

@necronet Would you be able to try this out in a fork?

@necronet
Copy link

I have a similar setup with using contenBase and seems webpack setup the proxy to point to the proper endpoints I'll do an sample on this!

@justin808
Copy link
Member Author

@necronet Please create a fork and maybe we can bring this in, and if it's super cool, @robwise will put in our generator.

@justin808
Copy link
Member Author

Closing this as we'll soon be changing around a few things which will address this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants