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

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

Open
softshape opened this issue May 14, 2014 · 2 comments
Open

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

softshape opened this issue May 14, 2014 · 2 comments

Comments

@softshape
Copy link

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
Copy link

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

@EliEladElrom
Copy link

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 &

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

3 participants