Starting a ruby ​​socket server on rails in cloud environments (geroku)

I use a hero and I can just configure the Ruby on Rails application, I try to convert it to a Socket server, basically I will need to bind to an open port, in this case I know Heroku only does 80 22 and 443.

Can port 80 be associated with these environments?

Also, how would I set an entry point for this socket server, all I know is that when the script / server loads the application.

Do I need to translate a function call? How a socket server starts instead of a rails application on top of any heroku web server.

+3
source share
2 answers

, HTTP. Heroku - Ruby , Host HTTP-. , , 30 , .

. , 30 ( 2 ), . - , javascript. -.

, , . MongoDB Delayed:: Job .

, , , HTTP, Heroku .

+4

, . ​​, , .

Node.js, ... -, - .

+1

Source: https://habr.com/ru/post/1744077/


All Articles