|
@@ -197,7 +197,7 @@ export default class ContentsList extends Component<PropsType, StateType> {
|
|
|
if (fileName.includes("Dockerfile")) {
|
|
if (fileName.includes("Dockerfile")) {
|
|
|
dockerfiles.push(fileName);
|
|
dockerfiles.push(fileName);
|
|
|
}
|
|
}
|
|
|
- if (this.state.currentDir === "" && fileName.includes("Procfile")) {
|
|
|
|
|
|
|
+ if (this.state.currentDir === "" && fileName == "Procfile") {
|
|
|
this.props.setProcfilePath("./Procfile");
|
|
this.props.setProcfilePath("./Procfile");
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
@@ -213,8 +213,9 @@ export default class ContentsList extends Component<PropsType, StateType> {
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
renderOverlay = () => {
|
|
renderOverlay = () => {
|
|
|
|
|
+ console.log(this.props.procfilePath)
|
|
|
if (this.props.procfilePath) {
|
|
if (this.props.procfilePath) {
|
|
|
- let processes = Object.keys(this.state.processes);
|
|
|
|
|
|
|
+ let processes = this.state.processes ? Object.keys(this.state.processes) : [];
|
|
|
return (
|
|
return (
|
|
|
<Overlay>
|
|
<Overlay>
|
|
|
<BgOverlay
|
|
<BgOverlay
|
|
@@ -293,6 +294,7 @@ export default class ContentsList extends Component<PropsType, StateType> {
|
|
|
this.state.processes &&
|
|
this.state.processes &&
|
|
|
Object.keys(this.state.processes).length > 0
|
|
Object.keys(this.state.processes).length > 0
|
|
|
) {
|
|
) {
|
|
|
|
|
+ console.log('setting procfile')
|
|
|
this.props.setProcfilePath("./Procfile");
|
|
this.props.setProcfilePath("./Procfile");
|
|
|
}
|
|
}
|
|
|
}}
|
|
}}
|