node.js - Is it possible to run node server in Express with only git-tracked files? -


i run express app files tracked in git. example, here current status of git (git status):

on branch master untracked files:  (use "git add <file>..." include in committed)      blogs/test_announcement.md     public/css/bootstrap-theme.min.css     public/css/bootstrap.min.css     routes/twitter.js  nothing added commit untracked files present (use "git add" track) 

however, when tried run server (i use nodemon), seems there no way ignore untracked files. makes blog test_announcement displayed on website.

ultimately, i'm going push local files managed under git remote paas there wouldn't problem on production. however, pretty stressful see untracked files in development phase.

so there possible way ignore files locally?

my suggestion add files separate git branch , checkout different branch when want test without them. example, keep master branch clean have private local-drafts branch not-to-be-published files.


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -