Skip to content

Instantly share code, notes, and snippets.

@ClaytonPeddy
Created August 15, 2016 02:59
Show Gist options
  • Save ClaytonPeddy/2530e7e5fbb7c0be124bf77c7dfeeaa8 to your computer and use it in GitHub Desktop.
Save ClaytonPeddy/2530e7e5fbb7c0be124bf77c7dfeeaa8 to your computer and use it in GitHub Desktop.
Play Framework on Azure App Service
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<handlers>
<add name="httpPlatformHandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified" />
</handlers>
<httpPlatform processPath="%HOME%\site\wwwroot\bin\play.bat"
arguments="-Dhttp.port=%HTTP_PLATFORM_PORT% -Dconfig.file=%HOME%\site\wwwroot\conf\application.conf -Dlogger.resource=logback.xml -Dpidfile.path=/dev/null"
startupRetryCount="1"
stdoutLogEnabled="true"
startupTimeLimit="60">
<environmentVariables>
<environmentVariable name="JAVA_OPTS" value="-Djava.net.preferIPv4Stack=true -server" />
</environmentVariables>
</httpPlatform>
</system.webServer>
</configuration>
@ClaytonPeddy
Copy link
Author

Play Framework on Azure App Service

This is a typcial web.config file for running a Play Framework application on Azure App Service. Play can run natively, without the use of a application server such as Tomcat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment