Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Merge pull request #126 from makandre/py
Browse files Browse the repository at this point in the history
Fix appsody project validation
  • Loading branch information
tobespc authored Sep 19, 2019
2 parents 29d40b6 + 6e3f942 commit 15be6d2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions utils/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,16 @@ func DetermineProjectInfo(projectPath string) (string, string, bool) {
language = "swift"
buildType = "swift"
}
if PathExists(path.Join(projectPath, "Pipfile")) {
language = "python"
buildType = "docker"
}
if PathExists(path.Join(projectPath, "stack.yaml")) {
buildType = "appsodyExtension"
isAppsody = true
}
if PathExists(path.Join(projectPath, ".appsody-config.yaml")) {
buildType = "appsodyExtension"
isAppsody = true
}
return language, buildType, isAppsody
Expand Down

0 comments on commit 15be6d2

Please sign in to comment.