Sfoglia il codice sorgente

Merge pull request #544 from porter-dev/master

ignore subdir procfile
sunguroku 5 anni fa
parent
commit
10eab3b73a
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      dashboard/src/components/repo-selector/ContentsList.tsx

+ 3 - 3
dashboard/src/components/repo-selector/ContentsList.tsx

@@ -197,9 +197,9 @@ export default class ContentsList extends Component<PropsType, StateType> {
       if (fileName.includes("Dockerfile")) {
         dockerfiles.push(fileName);
       }
-      // if (fileName.includes("Procfile")) {
-      //   this.props.setProcfilePath(item.Path);
-      // }
+      if (this.state.currentDir === "" && fileName.includes("Procfile")) {
+        this.props.setProcfilePath("./Procfile");
+      }
     });
     if (dockerfiles.length > 0) {
       this.setState({ dockerfiles });