A
A
AlexRas2017-08-14 18:20:37
Yii
AlexRas, 2017-08-14 18:20:37

How to start automatically websocket server on hosting?

Hello, there is a chat using websocket.
Websocket is launched via the console with the command:
yii socket/start-socket
If the vps server crashes or restarts, you must manually write the command to the console.
Can you tell me how to automate this?
Used by Ratchet.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
mitaichik, 2017-08-14
@AlexRas

I advise supervisor https://ruhighload.com/post/%D0%97%D0%B0%D0%BF%D1%...

I
Igor Koch, 2017-08-14
@amux

https://habrahabr.ru/company/southbridge/blog/255845/
https://habrahabr.ru/post/275645/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question