react-webpack-generators / generator-react-webpack

Yeoman generator for ReactJS and Webpack
http://newtriks.com/2013/12/31/automating-react-with-yeoman-and-grunt/
MIT License
2.88k stars 355 forks source link

Separating runnable item the from host Item #300

Closed ajnudnyy closed 7 years ago

ajnudnyy commented 7 years ago

I propose to deploy my site on servers that I just finished, but our servers installed java + tomcat for run java code and response, which isn't support of num running.

So I was wandering whether the runnable item could be separated from host Item and seek out?

ajnudnyy commented 7 years ago

I'm looking forward for your reply, our first page is going to go live ?
thank you pretty much.

AlexandreKilian commented 7 years ago

you can run react client-side no matter what kind of server is delivering the assets (it that was the question you hab). You won't be able to use serverside rendering though

ajnudnyy commented 7 years ago

Got it. I dont fear serverside rendering which lay-off, Now I'm trying to deploy a react module on tomcat for testing that I have completed. So the react module need to be separated from folder about yeoman, or other ways is also without any influence Only if the resource can be normally accessed. I just wander the dedail of operation that someone separates step by step runnable item from entire project after finished all of chunks. who had exaprienced in it could give me a hand?

ajnudnyy commented 7 years ago

I'm so frustrated with this problem and would appreciate it a lot if someone help me, Thank!

ajnudnyy commented 7 years ago

I get it, the runnable static files what I want that would be generated In the /dist after run npm run dist. It's no problem to see the module that I completed by introducing assets/app.js.

weblogixx commented 7 years ago

Hi @ajnudnyy,

yes, we do not have a static server in the generator, at least nothing that should/could be used to serve the project in live environments. The webpack-dev-server is used to create a local http-server when you use npm start or npm run serve:dist. However, to serve your files, you will have to serve the full bundle (generated via npm run dist with a "real" webserver, e.g. Apache, nginx etc... Hope this clarification helps. As @sthzg posted, we will add simple deployment instructions to the generators README.md file.

Please feel free to reopen this issue if you have any more questions.