Skip to content

Commit

Permalink
add php oryx build support
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklee2 committed Jun 20, 2019
1 parent e188011 commit fc35b14
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
12 changes: 8 additions & 4 deletions Kudu.Core/Deployment/Oryx/OryxArguments.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,20 +103,24 @@ public string GenerateOryxBuildCommand(DeploymentContext context)
break;

case Framework.NodeJs:
args.AppendFormat(" -l nodejs");
args.AppendFormat(" --platform nodejs");
break;

case Framework.Python:
args.AppendFormat(" -l python");
args.AppendFormat(" --platform python");
break;

case Framework.DotNETCore:
args.AppendFormat(" -l dotnet");
args.AppendFormat(" --platform dotnet");
break;

case Framework.PHP:
args.AppendFormat(" --platform php");
break;
}

// Version
args.AppendFormat(" --language-version {0}", Version);
args.AppendFormat(" --platform-version {0}", Version);

// Build Flags
switch (Flags)
Expand Down
3 changes: 2 additions & 1 deletion Kudu.Core/Deployment/Oryx/SupportedLanguages.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ public enum Framework
None,
NodeJs,
Python,
DotNETCore
DotNETCore,
PHP
}

public class SupportedFrameworks
Expand Down

0 comments on commit fc35b14

Please sign in to comment.