Closed hoang408 closed 6 years ago
When you tried to create service named echo
codegen created a default echo
operation, which matched service name and constructor. The service name should be echo
(try Echo
instead).
How you try to access it from another compuer? I mean which URL do you enter from another host?
Unfortunately, deploying under nginx under Windows not supported. But you can try Linux compatibility layer under Win 10 and install ngrest using Linux installation manual.
Consider this as a local problem with firewall or network configuration.
It's a firewall issue. ufw
did not open the port. I opened it later, and it worked.
Unable to configure ngrest on my Ubuntu 18.04 VM, I install ngrest on my Windows 7 following this guide: github.com/loentar/ngrest/wiki/Installation-guide-with-screenshots-Windows
I then have nginx installed following this guide: nginx.org/en/docs/windows.html
I run nginx.exe, and try creaing the generic
echo
project with ``This the error log I got:
I delete that folder and try
pets
instead:The
.cpp
and.h
files are modified as thepets
sample code, and this is executed:This works fine on my local machine. However, trying to access it from a browser on another computer fails. Am I doing anything wrong? The Windows installation file does not specified any configuration step for either
ngrest
ornginx
.