vapor / toolbox

Simplifies common command line tasks when using Vapor
MIT License
283 stars 85 forks source link

Can not stop app runned by vapor run #68

Closed roma86 closed 7 years ago

roma86 commented 7 years ago

Hello.

I have tried Ctrl+C Ctrl+D Ctrl+X.

App is still up and i have no idea how to kill them during vapor. When browser page refreshed app continuously logging into terminal where session was started.

GET /
GET /styles/app.css
GET /images/vapor-logo.png
GET /
GET /styles/app.css
GET /images/vapor-logo.png
ls
Config        Localization  Packages      Public        Resources     app.json
Dockerfile    Package.swift Procfile      README.md     Sources       license
➜  HiVapor git:(master) ✗ GET /
GET /styles/app.css
GET /images/vapor-logo.png
GET /
GET /styles/app.css
GET /images/vapor-logo.png

➜  HiVapor git:(master) ✗ ls
Config        Localization  Packages      Public        Resources     app.json
Dockerfile    Package.swift Procfile      README.md     Sources       license
➜  HiVapor git:(master) ✗ GET /
GET /styles/app.css
GET /images/vapor-logo.png
vapor stop
Usage: vapor <new|build|run|fetch|clean|test|xcode|version|self|heroku|docker>
Error: Command "stop" not found.
➜  HiVapor git:(master) ✗ GET /
GET /styles/app.css
GET /images/vapor-logo.png

I tried right now, and if app started without vapor cli .buid/debug/App it will be canceled via Ctrl+C as expected.

tanner0101 commented 7 years ago

This is fixed with Console 0.6.2. Reinstalling the toolbox should do the trick.

https://github.com/vapor/console/releases/tag/0.6.2