Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description


[![NPM version][npm-image]][npm-url]

findmejohnny

working title

Production Setup

Dependancies

  • nodejs

Setup

run the following command to build dependencies

npm rebuild

Run

node server.js

Development Setup

Dependancies

  • nodejs
  • gruntjs
  • bower
  • sass

Setup

run the following commands.

npm install --ignore-scripts
npm rebuild
bower install

Build the project

grunt

run the server

to run the nodejs server run the following code

node server.js

Notes on adding production dependencies

to add a new production npm dependencies

  • add them to the package.json
  • delete node_modules

run the following

npm install --production --ignore-scripts

Then add the new files to GIT so that it can run standalone in the future. Be sure that they are not in the .gitignore

git add . && git commit -a

browse site at: http://localhost:3000

Server deployment

repository is located on Pluto

Upgrade production

goto repo

cd /home/deploy/my-apps/findmejohnny

see what sites are running

forever list

Start the website

forever start server.js

To run this websites docker image

sudo docker run -t -i -p 80:80 -d etoxin/findmejohnny node server.js

To swap a docker image run the following, swapping the docker instance with whatever is live.

sudo docker stop trusting_shockley && sudo docker run -t -i -p 80:80 -d etoxin/findmejohnny node server.js
Docker Pull Command
Owner
etoxin
Source Repository