discourse/github-issues-to-discourse

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Installation

Install Node/NPM
 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
Install Application

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)

Install PM2

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
Updating the Application

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


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.