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

server restarting for each change #316

Closed
sebastiaanviaene opened this issue May 4, 2017 · 7 comments
Closed

server restarting for each change #316

sebastiaanviaene opened this issue May 4, 2017 · 7 comments

Comments

@sebastiaanviaene
Copy link

I am developing a project in ELectrode and have a problem , for each HTML , CSS or JS change the server restarts and I have to wait a minute (sometimes more) to see the result. In some aspects of webdevelopment this is very frustrating ( CSS for example). Is there a better way or is this the intended method for developing Electrode ?

@animesh10
Copy link
Contributor

That is intended behavior when you start the server in watch mode using gulp dev. You can chose to start your server using gulp build and gulp server. This will not pickup changes until you do a gulp build again.

@sebastiaanviaene
Copy link
Author

Thanks. I also know now why it was so slow. My laptop just had problems running the server. When I went on my desktop it worked much faster.

Is there a way to work with CSS in electrode where you can refresh to see instant results without a full server restart?

@animesh10
Copy link
Contributor

You should run gulp wds.hot to run the webpack dev server, and in another terminal you can run gulp server to run the actual hapiJs server.

@cross311
Copy link
Contributor

@animesh10 Is there any way to make that behavior default. Running two commands is not ideal and requires devs to look through docs. I understand when updating server to restart the server, but electrode is running webpack dev server, so any client updates do not need a server restart do they?

@cross311
Copy link
Contributor

another similar question: #235

@jchip
Copy link
Member

jchip commented Jun 23, 2017

we could turn off watch for dev or hot mode.

@codingcircus
Copy link
Contributor

Did someone here already find a way to extend the arch-gulpfile of electrode? I've been trying to wrap my head around how to modify the gulp configuration in my own gulpfile, however I can't seem to get it too work. Would be cool, if we could just overwrite or extend the server-watch task.

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

No branches or pull requests

5 participants