Ask A Question


You’re not receiving notifications from this thread.

How do i make chat app real time on Digital Ocean?

Malav Desai asked in Rails
I am trying to make a Chat web application based on Rails 4.0 using "private_pub" gem which works perfectly on my localhost server. You can check out my application at Now my site is hosted on DigitalOcean and i want to push chat code on the server to see how real-time chat app will work.

My question is What should i have to do to make it work on any Linux server ( Here Digital Ocean for me). I am using Nginx server on DigitalOcean.

What should i use as FAYE_URL in place of the server: in private_pub.yml file? And Do i have to run rack command on my server terminal? Or is there any other way to host Faye on a different server then ?


Personally i suggest Kubernetes, because its develop and iterate more rapidly with easy application deployment, release updates, and management of your apps and services.

Digitalocean API makes it easy to create, update and manage your cluster through our API. so Nginx server instead of use kubernetes, digitalocean also supports kubernetes for seamlessly integrates with your existing tooling and workflows.

Otherwise you need to setup Linux or ubuntu server, this blog explains clearly explain server setup

Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 82,464+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.