Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using concurrently ? #327

Open
melMass opened this issue Jan 3, 2019 · 1 comment
Open

Using concurrently ? #327

melMass opened this issue Jan 3, 2019 · 1 comment

Comments

@melMass
Copy link

melMass commented Jan 3, 2019

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 ?

@mnpenner
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants