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

upstart script for running with nodeenv #124

Open
dkerkow opened this issue Apr 11, 2014 · 4 comments
Open

upstart script for running with nodeenv #124

dkerkow opened this issue Apr 11, 2014 · 4 comments

Comments

@dkerkow
Copy link

dkerkow commented Apr 11, 2014

I am trying to run tilestream on an Ubuntu 12.04 server with nodeenv according to the instructions on the Readme.
Sadly, I'm stuck at configuring the Upstart script accordingly. Running Tilestream from the command line works so far.
Can you provide more detailed information on the Readme or an Upstart configuration example?

@springmeyer
Copy link
Contributor

Maybe just use a node.js specific way to keep the process alive? https://github.com/nodejitsu/forever is a common solution.

@dkerkow
Copy link
Author

dkerkow commented Apr 11, 2014

To be exactly, I've already tried that (inside an Upstart script, according to https://www.exratione.com/2013/02/nodejs-and-forever-as-a-service-simple-upstart-and-init-scripts-for-ubuntu/). But that is an additional layer of complexity that I didn't get to work.

It's all a little hacky, but running now with:

cd /var/www/tilestream
. tilestream_env/bin/activate
sudo npm install
sudo forever start ./index.js --config config.json

Any plans to upgrade tilestream to newer node versions in the future?

Thanks!

@springmeyer
Copy link
Contributor

Any plans to upgrade tilestream to newer node versions in the future?

It works with node v0.10.x in master if that is what you mean? Are you building from the master github repo?

@dkerkow
Copy link
Author

dkerkow commented Apr 11, 2014

Sure, I am using the version from github master.
So there's no need for nodeenv? Sounds different in the Readme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants