How do i make chat app real time on Digital Ocean?
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 curatethelens.com. 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 curatethelens.com ?
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 https://www.apptha.com/blog/steps-to-build-a-private-one-to-one-chat-app/