Friday 15 August 2014

ruby on rails 4 - Thin boots instead of puma -



ruby on rails 4 - Thin boots instead of puma -

i'm trying create chat application deployed on puma ec2 instance , have puma gem declared on gemfile, rails-websockets gem requires thin. reason when start server uses lean instead of puma.

how forcefulness app boot puma instead of thin?

i'm having issues since cannot start thread web sockets, i'm getting 500 error trying access /websockets

solved issue chatting on irc gem developer requires thin.

he gave me alternative branch not used , puma started work normally.

also, websocket problem, used this guide understand how nginx works. entered these lines on ec2 instance nginx config file:

location / { proxy_pass http://localhost:8080; proxy_http_version 1.1; proxy_set_header upgrade $http_upgrade; proxy_set_header connection "upgrade"; proxy_set_header host $host; }

so conection updradable.

ruby-on-rails-4 amazon-ec2 websocket puma

No comments:

Post a Comment