-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Procfile to start all services with one command
Starting all services in different terminals is tedious. This PR adds a Procfile and a honcho dependency that will start up all required processes in a single command.
- Loading branch information
Kaustubh Maske Patil
authored and
Kaustubh Maske Patil
committed
Sep 20, 2023
1 parent
e27cef6
commit b9c8b19
Showing
4 changed files
with
107 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# this Procfile can be run with `honcho`, and it can start multiple processes | ||
# with a single command. Handy for development. All of the below commands are | ||
# setup to run in dev mode only, and not in prod. | ||
# | ||
# The assumptions here are that: | ||
# - you have redis installed but not running as a background service | ||
# - you have rabbitmq installed but not running as a background service | ||
# - your local gooey-ui repo is at ../gooey-ui/ | ||
# | ||
# You can comment any of the processes if you have background services running | ||
# for them. You can also change the path for the `ui` process from `../gooey-ui/` | ||
# to wherever your local gooey-ui directory is. | ||
|
||
api: poetry run uvicorn server:app --host 127.0.0.1 --port 8080 --reload | ||
|
||
admin: poetry run python manage.py runserver 127.0.0.1:8000 | ||
|
||
dashboard: poetry run streamlit run Home.py --server.port 8501 --server.headless true | ||
|
||
rabbitmq: rabbitmq-server | ||
|
||
redis: redis-server | ||
|
||
celery: poetry run celery -A celeryapp worker | ||
|
||
ui: /bin/zsh -c "cd ../gooey-ui/; PORT=3000 npm run dev" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.