Last active
May 15, 2017 17:31
-
-
Save roboshoes/a8f5b320ccdb64b66b662b26a175f87c to your computer and use it in GitHub Desktop.
Spawning a GAE dev_appserver.py using gulp wrapper.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The path might be different for other people, but that is the default location (I believe).