Closed fabiankirstein closed 5 years ago
Will come this week....
A first test:
@cbotsikas Can you try this before we make more formal description?
@FabiApfelkern yes, i'll check it.
@FabiApfelkern I've tried it but I could only make it work with an extension on Firefox. With Chrome although it should have the cors disabled, it still complained about them. You forgot to mention that we also need to run 'npm install' (obviously) and 'bower install'. Since i don't like that we need to modify the application's code to make this solution work (someone could accidentally commit those changes) along with the fact that disabling CORS is not a good idea, here's a solution using local proxy to the live server (currently, I only found the need for /hopsworks-api, do we need more?):
npm install
and bower install
npm install serve-static --save-dev
npm install grunt-connect-proxy --save-dev
grunt serve
to run local web serverNote that I had to modify port from 9000 to 9001 because for some reason there's a check while determining the port to connect to the api and was changing the port to 8080.... 😕
Thanks @cbotsikas. Yes, I also don't like to change the code. But does your solution also change the code? @michaelalemu Can you check this?
Yes i do modify the Gruntfile.js and the package.json files but those, i guess, are acceptable changes that we can afford to do permanently on the repo. I'm not changing any application source file. We could have a separate repo with all the necessary code to run and develop locally. I can investigate further if for some reason we shouldn't apply my modification in this repo.
Thanks @cbotsikas. Yes, I also don't like to change the code. But does your solution also change the code? @michaelalemu Can you check this?
I've checked it and @cbotsikas solution seems to be working fine.
I've changed the latest frontend module in order to support our local development method, without the need of changing any files.
Please note that the latest code is under the aegis-0.6 branch and the working directory is aegis-web/yo. Install all requirements executing:
npm install
bower install
and run your local UI using the grunt serve
command
This should open your browser at http://localhost:9001 using our live server at http://bbc6.sics.se:8080
Also note that, all requests are proxied via localhost so that from your browser you shouldn't see any requests to bbc6.sics.se:8080.
I guess we can close this?
Yes, this was forgotten open..
Our initial concept is not working anymore. We will investifate further.