Skip to content

Latest commit

 

History

History
70 lines (48 loc) · 1.2 KB

README.md

File metadata and controls

70 lines (48 loc) · 1.2 KB

Build Status

Architecture Overview

Architecture Overview

Build

  1. Install Nodejs https://nodejs.org/en/download/package-manager/

  2. Latest Npm

sudo npm install npm@latest -g
  1. Install java
sudo apt-get install openjdk-8-jdk
  1. Grunt
sudo npm install grunt-cli -g
  1. Bower
 sudo npm install -g bower
 bower install
  1. Install Compass

See: http://compass-style.org/install/

sudo apt-get install ruby-full
sudo gem update --system
sudo gem install compass
  1. Build
npm install
grunt build

Docker

Build

 docker build -t jluccisano/nextrun ./docker

Run

docker run  -dit --name mongo -p 27017:27017 -v /data/db:/data/db mongo
docker run -dit --name nextrun -p 4000:3000 -e NODE_ENV=prod --link  mongo:mongo jluccisano/nextrun

Redirect port

sudo iptables -t nat -A PREROUTING -i enp1s0 -p tcp --dport 80 -j REDIRECT --to-port 4000