简体   繁体   中英

Node.js/express deployment to different environments

I'm writing a node.js app using express on the server. I'm also using handlebars and precompiling templates for use on the client. When running the app locally, I want to to keep each of the client source files (models, views, util files) in tact for debugging purposes, but when I deploy, I want the templates to be compiled and all of the client js files merged and minified to be served in one request. Before I write my own deploy scripts to do this, are there any existing frameworks/utilities that accomplish it?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM