Skip to content

chocolatechimpcookie/cfc_vacantlots_bid

Repository files navigation

Newark Vacant Lots app

This app allows developers to explore abandoned lots in Newark. It is currently under active development. We are working on ways to enable communication between developers and the City of Newark. Hopefully this will help to encourage new opportunities for the city.

Map of abandoned lots

screen shot 2017-04-29 at 9 30 00 pm

Install

This area will be populated shortly

THE RESTART

From the directory of the user that will run this service

Stop server app:

$ cd ../code/cfc_vacantlots_bid
$  (sudo) forever stopall

Stop mongodb:

$ sudo mongo --eval "db.getSiblingDB('admin').shutdownServer()"

Start mongodb:

$ sudo nohup mongod --smallfiles --nojournal &

START server app

$ sudo forever start server.js

Now Check your Link

Run on server

Go to the project directory and first get the mongodb server running

$ mongod

You may have to use sudo depending on how you installed mongodb.

Then start you node server

$ node server.js

Run indefinitely on small server

Go to the cloned repo and checkout the deploy branch. Get the mongo server running indefinitely. Normally you can use a service, but on a small server you may need the --smallfiles and --nojournal options which significantly decrease the memory footprint of the mongo database. You can run it indefinitely using nohup:

$ sudo nohup mongod --smallfiles --nojournal &

Then start you node server (sudo is necessary because we are using port 80)

$ sudo forever start server.js

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors