ICTatRTI / coconut-analytics

Browserified & backboned version of coconut-reports
Other
2 stars 3 forks source link

Deploy script errors #292

Closed scloo closed 6 years ago

scloo commented 7 years ago

Encountering errors while using the deploy.sh script. During the Executing views process, it complains of not being able to find the modules.

In the executeViews.coffee file, does the 'require' command knows where to find the modules, since the node_modules directory is under _attachments?

I have tried installing the request module as global but still getting the error. Apparently I need to install them local to project.

Furthermore, in order for executeViews to find the modules, I need to change the paths as follows: request = require '../_attachments/node_modules/request' glob = require '../_attachments/nodemodules/glob' = require '../_attachments/node_modules/underscore'

Is this the right way to go about it?

scloo commented 6 years ago

Issue fixed. Had to run 'npm install' in the --views folder to install the appropriate modules under node_modules.