-
Notifications
You must be signed in to change notification settings - Fork 27
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
Configuration when using cloud9 as a dev platform #5
Comments
Hi, thank you for taking the time to try this out on cloud9. That is incredible. The webpack-dev-server endpoints for the static files are only active and used when you are running with webpack-dev-server. When you are running the server on its own, the server uses the inert plugin and the electrode-static-files decor https://github.com/electrode-io/electrode-static-paths#static-files to serve files at the port you configured in your config files. |
Hi, Thank you for your reply and for sharing work with the community ! In fact, I am using the dev mode.
And in the log I see :
This line in particular :
I would like webpack to server the assets from How can I achieve this ? Thanks |
I see. At the moment the port 2992 can't be changed but I am planning to make a change to that. However, webpack-dev-server would have to listen on a different port than the main server for obvious reasons. Would that work for you? The port is set here https://github.com/electrode-io/electrode-archetype-react-app/blob/master/config/archtype.js#L16. Is there a reason you are running with webpack-dev-server like that? |
It should work, thanks. Cheers, |
electrode-archetype-react-app 1.3.2 supports env |
Thanks jchip. I had to make additional edits : in
It would be good to be able to set an env variable for the hostname aswel. and in
Now webpack serves it at my-workspace.my-cloud9-username.c9users.io:8082 :
But the browser fail to get the resource (HTTP 503) Cheers |
Close due to inactivity |
Hello,
I use cloud9 as a dev platform, it is a dev environment hosted on the cloud : the IDE is in the browser.
I managed to configure my electrode app to make it reachable from the outside (localhost is not an option asmy app is running on cloud9 server) :
I edited the
development.json
fileand I can reach my app with
http://<cloud 9 workskapce hostname>:8081
.So far, so good.
However, the static resources (css & js file) are not loaded as they are referenced as:
http://localhost:2992/js/style.css
and
http://localhost:2992/js/bundle.dev.js
From what I understood, webpack is serving those files.
Is their a way to configure the host and port of webpack as I did for my electrode server ?
Thanks in advance,
Cheers
Christophe
The text was updated successfully, but these errors were encountered: