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

Run on Windows Server OS #567

Open
kyao opened this issue Jul 22, 2021 · 3 comments
Open

Run on Windows Server OS #567

kyao opened this issue Jul 22, 2021 · 3 comments
Assignees
Milestone

Comments

@kyao
Copy link
Collaborator

kyao commented Jul 22, 2021

Run on Windows Server with IIS.

  • Make T2WML backend into a service
  • Use IIS reverse proxy to access the T2WML backend service
@kyao kyao added this to the Milestone 3 milestone Jul 22, 2021
@zmbq
Copy link
Collaborator

zmbq commented Aug 13, 2021

@ChanaChelem , you need to turn the t2wml backend into a service. We already use pyinstaller to create t2wml-server.exe (you can look at the script backend/packaging/prepare_installation.py - it runs pyinstaller with the proper flags, before packaging electron as well).

First thing you need to do figure out how to add waitress to t2wml - waitress is the Windows equivalent of gunicorn - it will run multiple backend instances and load balance requests between them. Start by creating a t2wml-waitress.py that will run t2wml under waitress. Once it runs (python t2wml-waitress.py starts the backend with waitress), use pyinstaller to create t2wml-waitress.exe .

Now you need to turn this into a service. Create a file called t2wml-service.py that will implement the technique mentioned [here] (https://metallapan.se/post/windows-service-pywin32-pyinstaller/) . You will probably need to replace MyService() with a class that starts and stops the waitress server.

The service should listen on localhost:13000, and only accept connections from the local machine (do not listen on 0.0.0.0:13000), as Causex will place it behind a reverse proxy.

ChanaChelem added a commit that referenced this issue Aug 16, 2021
@kyao
Copy link
Collaborator Author

kyao commented Aug 20, 2021

For now the CX folks just want something that can run on Windows. Integration with IIS is not needed.

@kyao
Copy link
Collaborator Author

kyao commented Aug 23, 2021

@zmbq @ChanaChelem Can we get a version that runs on Windows first without the integration with IIS?

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

3 participants