Skip to content

Instantly share code, notes, and snippets.

@flybyray
Created May 11, 2022 23:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flybyray/37e8dad87059adea26fd0c68b9a798ad to your computer and use it in GitHub Desktop.
Save flybyray/37e8dad87059adea26fd0c68b9a798ad to your computer and use it in GitHub Desktop.
Play!Framework 1 Anwendung mit HTTPS unter Windows starten
  • %COMSPEC% /c "set __COMPAT_LAYER=RUNASINVOKER && start systempropertiesadvanced.exe"

    • prüfen: JAVA_HOME, PLAY_PATH, PYTHONHOME
  • code %PLAY_PATH%\play.bat

    • sicherstellen das funktionierendes PYTHON referenziert wird
      @echo off
      if not defined PYTHONHOME "%~dp0python\python.exe" "%~dp0play" %*
      if defined PYTHONHOME "%PYTHONHOME%\python.exe" "%~dp0play" %*
      
  • optional(validierung das obige einstellungen funktionieren): starte beispiel anwendung

    • %PLAY_PATH%\play.bat run %PLAY_PATH%\samples-and-tests\zencontact
  • optional: oeffnen der eingebauten dokumentation

    • http://%COMPUTERNAME%:9000/@documentation/en/production#https
  • application conf editieren oder spaeter mit --https.port=9443 starten

    • code %PLAY_PATH%\samples-and-tests\zencontact\conf\application.conf
  • anlegen der Zertifikate zum beispiel mit xca

    • %COMSPEC% /K "echo %PLAY_PATH%\samples-and-tests\zencontact\conf\host.key"
    • %COMSPEC% /K "echo %PLAY_PATH%\samples-and-tests\zencontact\conf\host.cert"
  • beenden der anwendung und schliessen des browser tabs

    • http://%COMPUTERNAME%:9000/@kill
  • starte beispiel anwendung ( wenn nicht in application.conf dann hier mit --https.port=9443 starten )

    • %PLAY_PATH%\play.bat run %PLAY_PATH%\samples-and-tests\zencontact
  • oeffnen der anwendung mit SSL

    • https://%COMPUTERNAME%:9443/@documentation/en/production#https
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment