I am trying to make a Chat web application based on Rails using “private_pub” gem which works perfectly on my localhost server. 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.
This is my private_pub.yml file
development:
server: "http://localhost:9292/faye"
secret_token: "secret"
test:
server: "http://localhost:9292/faye"
secret_token: "secret"
staging:
server: <%= ENV["FAYE_URL"] %>
secret_token:"secret_key"
signature_expiration: 3600 # one hour
production:
server: <%= ENV["FAYE_URL"] %>
secret_token: "secret_key"
signature_expiration: 3600 # one hour
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 be the value for FAYE_URL in private_pub.yml file?
rackup private_pub.ru -s thin -E production
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?