This is a development repository.
- We are running with a local MongoDB
On Mac OS install via homebrew:
brew install mongodb
On Mac OS or Linux:
curl https://install.meteor.com/ | sh
-
Data Folder with correct permissions: A certain data folder structure is expected.
/hnet/incoming/current
+/hnet/outgoing
should exist. Also, folders for incoming data from each site need to exists when sites have been created. -
For pushing data out, the server is using lftp which must be installed.
Note: The bootstraping data that is in the repository doesn't work correctly if the data folder have not been setup correctly.
You may have to run the following:
meteor npm install --save highcharts
meteor npm install --save ftps
meteor npm install --save junk
meteor npm install --save fs-extra
meteor npm install --save chokidar
MONGO_URL=mongodb://localhost:27017/DataMaps meteor
For debugging with node inspector run MONGO_URL=mongodb://localhost:27017/DataMaps meteor debug
and open the app in Chrome with the port listed once the app has started.
- change into the working directory and run
meteor build .
- this will generate a *.tar .gz file - move the file to the install location nd extract it (you will end up with a
bundle
directory cd bundle/programs/server/
andnpm install
- generate a configuration file for PM2 (see example gist) outside of bundle
- run
pm2 start [your_pm2_conf_file] --node-args="--max_old_space_size=8192"