steeve / angular-seo

SEO for AngularJS apps made easy.
1.06k stars 127 forks source link

How to start angular-seo from init.d ? #19

Open softshape opened 10 years ago

softshape commented 10 years ago

Hi all,

a recommended way to run angular-seo is -

$ phantomjs --disk-cache=no angular-seo-server.js 8888 http://localhost:8000/myapp

But it waits for user input (Ctrl-C) and so I'm not sure it can be used in init.d scripts.

So what is the right way to run angular-seo when server starts?

marjoripomarole commented 10 years ago

I also like to see a good solution to run this script as a daemon. Thank you!

EliEladElrom commented 9 years ago

On linux it can be set like this: nohup phantomjs --disk-cache=no angular-seo-server.js 8888 http://www.example.com/index.html > /dev/null 2>&1 &