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

How to make the built webapp working with the server? #18

Open
luciemac opened this issue Aug 6, 2019 · 1 comment
Open

How to make the built webapp working with the server? #18

luciemac opened this issue Aug 6, 2019 · 1 comment

Comments

@luciemac
Copy link

luciemac commented Aug 6, 2019

Hi,

I'm trying to build code, and I'm having troubles trying to use it with python server.
To built and start web and server instances, I followed instructions from documentation (and did not built a standalone executable)

Once server started (with python server.py), I have access to the web page at http://localhost:9999/ but the process step does not work and I'm guessing it is because no server is found.
Moreover, once server starts, it directly opens http://localhost:41692/?wsServer=ws://localhost:41692/ws . The front of this page is not the same than the one at http://localhost:9999/ and here, I can run the process step.

How can I make the server works with the built webapp ?

Thanks,

@floryst
Copy link
Contributor

floryst commented Aug 6, 2019

If you are setting things up for development purposes (e.g. making changes to both client and server), then here are some steps to make things easier. I will add something to make this more streamlined, since setting this project up for development still requires some manual changes.

In server.py, comment out line 58 and hardcode a port (e.g. 9998) in line 41. This will make sure the server runs on the same port every time you run server.py. We use port 9998 since npm run dev for the webapp will default run on 9999. Then, you can access both your dev build of the webapp at http://localhost:9999/?wsServer=ws://localhost:9998/ws.

Let me know if the above needs clarifying. I'll eventually work on making that process more streamlined, but right now it does require modifying some code.

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

No branches or pull requests

2 participants