Closed jasjeet30 closed 7 years ago
You shouldn't be using it this way because you would have no control over the instance, and that @reconnect
could be set in a weird place. You should be putting this inside your own class or something.
That aside, daemonizing could be tricky, and it would be depending on the server you're running. Which server are you using right now? By didn't work, what do you mean? Please describe how that didn't work?
thanks for reply I change the code structure so it working now.
Oh, good to know it's working now :)
I put this code in config/initializers folder.
` require 'rest-firebase'
and i run the server as rails s -b 0.0.0.0 -p 3000 it works but when i run my server forever with rails s -b 0.0.0.0 -p 3000 -d it didn't work.