transloadit / uppy-server

[DEPRECATED] 'Uppy Server' was renamed to 'Companion' and lives inside the Uppy repo no
https://github.com/transloadit/uppy/tree/master/packages/%40uppy/companion
MIT License
114 stars 27 forks source link

stop uppy-server #55

Closed floodico closed 6 years ago

floodico commented 6 years ago

Hello there! I'm using uppy-server as standalone server and running him from Procfile of my project. And sometimes when i stop my own server, uppy-server doesn't stop. Then i must delete running command of uppy-server from Procfile. That's very not comfortably. How can i stop uppy-server manually?

kvz commented 6 years ago

Hi there, uppy server is a 'normal' process so it can be stopped by whoever launches it, so I'm afraid this is more of a Procfile question, but i am unfamiliar with Procfile. Anyone else?

ifedapoolarewaju commented 6 years ago

since you are using the procfile, then you are most likely on heroku. I imagine you could have your procfile similar to this.

web: <your rails server command>
uppy: <your uppy-server command>

then you can stop the uppy-server from your heroku cli like so:

heroku ps:scale uppy=0

Note the name uppy is corresponding to the label given to it in the procfile.

floodico commented 6 years ago

thank you @ifedapoolarewaju, and what about localhost?

ifedapoolarewaju commented 6 years ago

@floodico are you using foreman? If yes, then you can follow one of these ideas here.

But this is really not an issue with uppy-server, but with foreman itself : )

ifedapoolarewaju commented 6 years ago

closing this as it actually isn't an uppy-server issue