fzaninotto / screenshot-as-a-service

Website screenshot service powered by node.js and phantomjs
1.1k stars 242 forks source link

Stopping Phantomjs internal server #61

Open sferoze opened 10 years ago

sferoze commented 10 years ago

I git cloned this repo

Then used npm install

Then installed phantomjs using brew install phantomjs

Then started the server using 'node app'

Server started ok

Made request using: curl http://localhost:3000/?url=www.google.com > google.png

The request fails and the server keeps repeating the phrases:

Phantomjs internal server listening on port 3001
Express server listening on port 3000
Phantomjs process is sleeping. Restarting.
Stopping Phantomjs internal server
Phantomjs internal server listening on port 3001
Phantomjs process is sleeping. Restarting.
Stopping Phantomjs internal server
Phantomjs internal server listening on port 3001
Phantomjs process is sleeping. Restarting.
Stopping Phantomjs internal server
Phantomjs internal server listening on port 3001
Phantomjs process is sleeping. Restarting.
Stopping Phantomjs internal server
Phantomjs internal server listening on port 3001