Search code examples
google-app-enginephpstorm

Google App Engine on PHPStorm 10


I have trouble running/debugging Google App Engine application from PHPStorm lately. It seems that PHPStorm adds a dot ( . ) at the end of the command when running dev_appserver.py

/usr/bin/python /Users/maksim/google-cloud-sdk/platform/google_appengine/dev_appserver.py app.yaml ember.yaml dispatch.yaml --php_executable_path=/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/php55/php-cgi --host=0.0.0.0 --enable_sendmail=true .

dev_appserver.py: error: unrecognized arguments: .

Process finished with exit code 2

When I run the command without dot from my terminal, it is working perfectly.

/usr/bin/python /Users/maksim/google-cloud-sdk/platform/google_appengine/dev_appserver.py app.yaml ember.yaml dispatch.yaml --php_executable_path=/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/php55/php-cgi --host=0.0.0.0 --enable_sendmail=true

How can I fix this? Can JetBrains team update the plugin for Google App Engine or is there a workaround to remove that dot from being added to the script?enter image description here

EDIT: forgot to add Google App Engine SDK version which is release: "1.9.28"


Solution

  • I encountered a similar problem with PyCharm/python.

    Creating a custom Run configuration for my project as suggested in this answer worked for me: Run App Engine development server with modules in PyCharm, a similar solution might work for PHPStorm.