File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -273,6 +273,11 @@ func (cmd *InitCmd) addPortForwarding(port int) {
273273}
274274
275275func (cmd * InitCmd ) addDefaultSyncConfig () {
276+ for _ , syncPath := range * cmd .config .DevSpace .Sync {
277+ if * syncPath .LocalSubPath == "./" || * syncPath .ContainerPath == "/app" {
278+ return
279+ }
280+ }
276281 dockerignoreFile := filepath .Join (cmd .workdir , ".dockerignore" )
277282 dockerignore , err := ioutil .ReadFile (dockerignoreFile )
278283 uploadExcludePaths := []string {}
@@ -285,12 +290,6 @@ func (cmd *InitCmd) addDefaultSyncConfig() {
285290 }
286291 }
287292
288- for _ , syncPath := range * cmd .config .DevSpace .Sync {
289- if * syncPath .LocalSubPath == "./" || * syncPath .ContainerPath == "/app" {
290- return
291- }
292- }
293-
294293 syncConfig := append (* cmd .config .DevSpace .Sync , & v1.SyncConfig {
295294 ContainerPath : configutil .String ("/app" ),
296295 LocalSubPath : configutil .String ("./" ),
You can’t perform that action at this time.
0 commit comments