Hi, M. from zenpropect,

I am looking for a solution to serve gRPC using uWSGI and Nginx.

Would you mind to give an overview of how you did it?

Thanks in advance.

Best Regards,
Guang Yang

On Wednesday, August 31, 2016 at 12:30:43 PM UTC-4, [email protected] 
wrote:
>
> Thanks Mark! I ended up setting up uWSGI and Enginx.
>
> On Wednesday, August 31, 2016 at 1:14:54 AM UTC-7, Mark NS wrote:
>>
>> You can use the nohup command:
>>
>> http://www.cyberciti.biz/tips/nohup-execute-commands-after-you-exit-from-a-shell-prompt.html
>>
>> nohup python3 server.py &
>>
>>
>> On Wednesday, 31 August 2016 02:11:19 UTC+2, [email protected] wrote:
>>>
>>> I read from the tutorial that "server.start() does not block you may 
>>> need to sleep-loop if there is nothing else for your code to do while 
>>> serving." Is the recommended approach to include the following code after 
>>> server.start()?
>>>   try:
>>>     while True:
>>>       time.sleep(60*60*24)
>>>   except KeyboardInterrupt:
>>>     server.stop(0)
>>>
>>> If I'm setting up a grpc service on a remote machine, I can ssh into the 
>>> machine and run command like "python3 server.py" to start the server. How 
>>> can I keep the service running if I want to exit ssh from my local machine?
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/a5d91288-79d6-418d-befc-06d65f224930%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to