node.js - Deploying NodeJS/Babel/Grunt app on Heroku -
i'm trying deploy project on heroku. i've been able heroku open
app , see 404 on bundle.js
. app on github here. app on heroku here.
i've tried making sure dependencies there regarding babel, babelify, grunt, etc. must still missing something.
i don't errors after git push heroku
still 404.
i able recreate locally well. when run postinstall
script code:
$ npm run postinstall > ncps-mms@0.0.0 postinstall ncps-mms > gulp transpile --gulpfile client/gulpfile.babel.js [00:18:43] requiring external module babel-register [00:18:43] working directory changed ncps-mms/client (node:30276) fs: re-evaluating native module sources not supported. if using graceful-fs module, please update more recent version. [00:18:43] using gulpfile ncps-mms/client/gulpfile.babel.js [00:18:44] starting 'transpile'... error: cannot find module './controllers/members-detail-controller' 'ncps-mms/client/src' [00:18:44] finished 'transpile' after 184 ms
i see error:
error: cannot find module './controllers/members-detail-controller' 'ncps-mms/client/src'
the members-detail-controller missing - see: https://github.com/gh0st/ncps-mms/tree/master/client/src/controllers.
if comment out following lines, https://github.com/gh0st/ncps-mms/blob/master/client/src/app.js#l4 , https://github.com/gh0st/ncps-mms/blob/master/client/src/app.js#l15 run npm run postinstall
again, gulp tasks run without errors. able start server without 404's on bundle.js.
Comments
Post a Comment