Phantomjs.rb Freezing When Trying To Screen Capture Page In My Rails Application
I'm having trouble getting a screen capture from my application while using the phantomjs.rb gem. I'm currently just trying local url's. If I get those working I'll use url_for's l
Solution 1:
You have to use a multi-threaded web server like puma.
See here for an overview of different options.
Another pitfall might be your controller logic. If the page, that gets rendered by phantom, triggers the same controller action than the one, that calls phantom, you create an infinite loop.
Then, even a multi-threaded server would get stuck :)
Post a Comment for "Phantomjs.rb Freezing When Trying To Screen Capture Page In My Rails Application"