We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Depends on Nginx.
Create the following dirs:
mkdir -p /var/log/nginx/foo
Create /etc/nginx/sites-available/foo with:
/etc/nginx/sites-available/foo
upstream foo { server localhost:3000; } server { listen 80; server_name domain.foo.bar; access_log /var/log/nginx/foo/access.log; error_log /var/log/nginx/foo/error.log; location / { proxy_pass http://foo; proxy_read_timeout 90; } }
Create the following link
ln -s /etc/nginx/sites-available/foo /etc/nginx/sites-enabled/foo
Restart nginx
service nginx restart
Create upstart configuration /etc/init/foo.conf
/etc/init/foo.conf
description "Foo daemon" start on (local-filesystems and net-device-up) stop on runlevel [!2345] expect daemon respawn exec start-stop-daemon --start --background --chuid deploy --exec /usr/local/bin/foo
Create run script /usr/local/bin/foo
/usr/local/bin/foo
#! /bin/bash cd /srv/foo node foo.js --port 3000 2>&1 | logger -t foo
Make it executable
chmod a+x /usr/local/bin/foo
Start it
start foo
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Depends on Nginx.
Create the following dirs:
Create
/etc/nginx/sites-available/foo
with:Create the following link
Restart nginx
Create upstart configuration
/etc/init/foo.conf
Create run script
/usr/local/bin/foo
Make it executable
Start it
The text was updated successfully, but these errors were encountered: