hotel icon indicating copy to clipboard operation
hotel copied to clipboard

Using concurrently ?

Open melMass opened this issue 6 years ago • 1 comments

Hi,

Thanks for making hotel, very useful.

I have an issue or maybe a feature request. I'm working on a project with a react frontend and a python flask backend. for instance:

├── app.log ├── client the react app (frontend) │   ├── README.md │   ├── craco.config.js │   ├── dist │   ├── package.json │   ├── public │   ├── src │   ├── yarn-error.log │   └── yarn.lock ├── package.json ├── requirements.txt ├── scripts │   └── restart_server.sh ├── server.py the flask app (backend) ├── database.py ├── db.json ├── venv │   ├── bin │   ├── include │   ├── lib │   ├── pip-selfcheck.json │   └── pyvenv.cfg └── yarn.lock

I use concurently to run both the python server and the react app (dev mode) at the same time with --kill-others-on-fail

Trying to register hotel add "yarn run dev" but it's autobinding both to the same port making one or the other fail.

I know that I could use two separate add for frontend / backend but I was wondering if there was a workaround to this ?

melMass avatar Jan 03 '19 19:01 melMass

I'm thinking the ability to create server groups might be nice.

It's not quite what you're asking for, but if Hotel could boot multiple servers at once (essentially replacing concurrently) that'd be swell. We'd still need a way to pass in the ports of all the other servers to each process though; right now I have to hardcode the ports so that they can talk to eachother.

mnpenner avatar Dec 28 '19 06:12 mnpenner