File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,7 @@ var deployCmd = &cobra.Command{
121
121
}
122
122
123
123
if deploymentCtx .Type == "unknown" {
124
+ log .S .StopFail ()
124
125
log .Warning ("unknown project type, please check your project directory. " +
125
126
"or you could specify project type with `-t` flag" )
126
127
return
@@ -304,7 +305,9 @@ var deployCmd = &cobra.Command{
304
305
// respect .gitignore and .letignore
305
306
if _ , err := os .Stat (filepath .Join (dirPath , ".gitignore" )); err == nil {
306
307
// match a file against a particular .gitignore
307
- i , _ := ignore .CompileIgnoreFile (filepath .Join (dirPath , ".gitignore" ))
308
+ i , _ := ignore .CompileIgnoreFileAndLines (filepath .Join (dirPath , ".gitignore" ),
309
+ "node_modules" , // nodejs
310
+ )
308
311
309
312
tmp := []string {}
310
313
for _ , v := range names {
Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ var devCmd = &cobra.Command{
67
67
var deploymentCtx deploy.DeployContext
68
68
detectedType := deploymentCtx .DetectProjectType ()
69
69
if detectedType == "unknown" {
70
+ log .S .StopFail ()
70
71
log .Warning ("unknown project type, please check your project directory. " +
71
72
"or you could specify project type with `-t` flag" )
72
73
return
You can’t perform that action at this time.
0 commit comments