S
S
softshape2014-05-17 06:20:18
PhantomJS
softshape, 2014-05-17 06:20:18

How to start PhantomJS on server start?

Hello everyone,
I need to run PhantomJS with the angular-seo script when starting the server. From the shell this command looks like this -
$ phantomjs --disk-cache=no angular-seo-server.js 8888 localhost:8000/myapp
But it stops waiting for Ctrl-C. As far as I understand, if you just put it in /etc/rc.local, the execution of commands on it will stop.
How to properly launch PhantomJS on server startup?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Solovyov, 2014-05-17
@pavel_salauyou

I use supervisor for such purposes , I create a service, it starts automatically.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question