Name: github-issues-to-discourse
Owner: Discourse
Description: null
Created: 2016-05-13 11:37:48.0
Updated: 2017-11-05 20:03:03.0
Pushed: 2017-05-03 11:45:39.0
Homepage: null
Size: 94
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
https://nodejs.org/dist/v4.4.4/node-v4.4.4-linux-x64.tar.xz
r node
xvf node-v4.4.4-linux-x64.tar.xz --strip-components=1 -C ./node
r node/etc
'prefix=/usr/local' > node/etc/npmrc
mv node /opt/
chown -R root: /opt/node
ln -s /opt/node/bin/node /usr/local/bin/node
ln -s /opt/node/bin/npm /usr/local/bin/npm
Be sure to reference your HTTPS key and cert in the config if using HTTPS
Setup a GitHub OAuth Developer Application (Profile > Settings at GitHub)
https://example.com/auth/github/callback
(replace example.com with your URL)clone https://github.com/cpradio/github-issues-to-discourse.git
ithub-issues-to-discourse
onfig/index.js.sample config/index.js
config/index.js
install
Replace bin/www
with bin/https
if using HTTPS
npm install pm2 -g
setcap cap_net_bind_service=+ep /opt/node/bin/node
CONFIG=production pm2 start bin/www
save
startup ubuntu
Pull down the latest source from github, update the packages, restart the app
pull
install
restart 0
Source: https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-14-04