Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Run more programs in one component
I am using App Platform. I would like run more programs in one component. In my case its are:
- Gunicorn (Flask App):
gunicorn --worker-tmp-dir /dev/shm --config gunicorn_config.py app:app
- Python (ZMQ server):
Both programs should be in operation throughout the running of the component.
What I tried
I tried to follow documentation.
Both build and run commands can be compound (joined by && or separated by newlines) if you need to perform multiple actions at build or run time. App Platform will attempt to infer these commands at inspection time, however if it is unable to do so, you must set them manually.
It did not work. It just started only first command/program.
I also tried write some bash and python script which should pack both commands to one script. But It did not work again.
What I did wrong?
Thank you for any help
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×