Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

copycopter_client causes rails to hang when daemonized #34

Open
ressu opened this issue Jul 16, 2012 · 0 comments
Open

copycopter_client causes rails to hang when daemonized #34

ressu opened this issue Jul 16, 2012 · 0 comments

Comments

@ressu
Copy link

ressu commented Jul 16, 2012

After I added copycopter_client to my rails application, I noticed an interesting side-effect.

The rails process doesn't start properly unless it's slowed down a bit after CopycopterClient.configure. Just adding sleep 2 after configuration allows rails to start normally.

The logs can easily be used to identify when the problem occurs. Without the sleep clause "Downloaded translations" message doesn't appear in the log and rails doesn't respond at all.

I currently don't have anything to go on to further debug this issue.

My copycopter initializer contains:

     CopycopterClient.configure do |config|
       config.api_key = 'mykey'
       config.host = 'my-copycopter.herokuapp.com'
     end
     sleep 1

This issue is seen with rails 3.2.6 and ruby 1.9.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant