Skip to content

Instantly share code, notes, and snippets.

@roboshoes
Last active May 15, 2017 17:31
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 roboshoes/a8f5b320ccdb64b66b662b26a175f87c to your computer and use it in GitHub Desktop.
Save roboshoes/a8f5b320ccdb64b66b662b26a175f87c to your computer and use it in GitHub Desktop.
Spawning a GAE dev_appserver.py using gulp wrapper.
const spawn = require( "child_process" ).spawn;
var server;
gulp.task( "gae", function() {
if ( server ) server.kill();
server = spawn( "python", [
'C:/Users/<your user>/AppData/Local/Google/Cloud SDK/google-cloud-sdk/bin/dev_appserver.py',
"--port", "8080",
"<your out folder>"
], { stdio: "inherit" } );
} );
process.on( "exit", function() {
if ( server ) server.kill();
} );
@roboshoes
Copy link
Author

The path might be different for other people, but that is the default location (I believe).

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