Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to shutdown Google App Engine's local dev server from the command line?

I have run the local GAE app server (dev_appserver.py) from Eclipse and then Eclipse crashed. So I had to kill Eclipse and restart it. However, when Eclipse restarted, it lost connection to the still running GAE server and I cannot figure how to shut it down.

like image 347
Win Myo Htet Avatar asked Apr 20 '12 01:04

Win Myo Htet


People also ask

How do I use Google App Engine locally?

Running your application locallySelect File > Open to open the project you want to run. Browse to the directory containing your project. Select Tools > Cloud Code > App Engine Run on a local App Engine Standard dev server.


2 Answers

You have to kill the process of the devserver. This is os dependent. On linux use:

ps aux| grep java 
kill -9 <process id>

On windows you can use tasklist and taskkill.

like image 102
Peter Knego Avatar answered Sep 25 '22 15:09

Peter Knego


I found (one Windows XP) that if I started the local server using ant, and then tried to kill it with ^C, it wouldn't kill JAVA.EXE,

but when I start the server using a small batch file reading "%appEngine_home%\bin\dev_appserver.cmd war", when I press ^C it kills it.

like image 34
Peter Dobson Avatar answered Sep 25 '22 15:09

Peter Dobson