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

A tip for Forever integration and .sh startup ubuntu #6

Open
mistertest opened this issue Apr 30, 2017 · 0 comments
Open

A tip for Forever integration and .sh startup ubuntu #6

mistertest opened this issue Apr 30, 2017 · 0 comments

Comments

@mistertest
Copy link

mistertest commented Apr 30, 2017

Hello,

Thank you very much for your app, it's working very well, good stuff.
I will modifying your work for my project and i can sharing some tips some times here.

So for integration with forever, the command line is :
sudo forever start -c coffee /your-path-folder/app/app.coffee;

But when you restart the server, the app is gone.
So for execution of this command on startup Ubuntu, i create a script bash .sh in the same repertory app. His name is "start-webflix.sh"

The content :

#!/bin/sh
export NODE_ENV=production
export PATH=/usr/local/bin:$PATH
forever start c coffee /your-path-folder/app/app.coffee

Save and close

Now i edited /etc/rc.local
sudo gedit /etc/rc.local

The content before "exit" :

/your-path-folder/start-webflix.sh

Save, exit, reboot and normally it will be ok. Webflix is really here forever.
Enjoyed this tip.

Excuse my English I'm French.

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

1 participant