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

Webpack Dev Server & Preview URL #1919

Closed
gemmadlou opened this issue Mar 15, 2017 · 4 comments
Closed

Webpack Dev Server & Preview URL #1919

gemmadlou opened this issue Mar 15, 2017 · 4 comments

Comments

@gemmadlou
Copy link

Webpack dev server doesn't work with Codenvy. There are no error messages, and I'm still learning how to use Codenvy. Any help will be deeply appreciated.

Reproduction Steps:

I currently run this command on a static app project in Codenvy using a command:

webpack-dev-server --inline --hot

I get the following response from the terminal:

command: cd /projects/CAAS && npm run dev
preview:node15.codenvy.io:33373

[email protected] dev /projects/CAAS
webpack-dev-server --inline --hot

Project is running at http://localhost:8080/
webpack output is served from /dist/
404s will fallback to /index.html
(node:2768) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see webpack/loader-utils#56
parseQuery() will be replaced with getOptions() in the next major version of loader-utils.

Codenvy version:

5.4.1

OS and version:

Chrome OSX

Docker version:

???

@ghost
Copy link

ghost commented Mar 15, 2017

@gemmadlou i am bit confused. What command are you trying to run and what preview URL does not work for you?

Sharing your project and command you use to run it will help.

@ghost ghost added the kind/question label Mar 15, 2017
@gemmadlou
Copy link
Author

gemmadlou commented Mar 15, 2017

Hi @eivantsov

I created a preview url within the CMD tool referencing the following rule:
http://${server.port.8080}

image

I map my npm webpack-dev-server to the port using the following command:
webpack-dev-server --host 0.0.0.0 --port 8080 --inline --hot

However, when I go to the generated url - it doesn't load anything and ends up timing out.

I have created a factory of my project so far:
https://codenvy.io/dashboard/#/load-factory?id=factorywhgqf6zy47fbu3ta

@ghost
Copy link

ghost commented Mar 15, 2017

image

@gemmadlou please check if the ephemeral port range 32768-65535 isn't blocked in your network. I was able to run your project.

@gemmadlou
Copy link
Author

Yeah - that was it @eivantsov! Thank you so much!

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

1 participant