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

build: Expose development environment on localhost only #1781

Merged
merged 1 commit into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion backend/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ DB_USER = dev
DB_NAME = dev
VENV = .venv

HOST ?= 127.0.0.1

DATABASE_LOAD_FILE ?= ../local/load.sql
DATABASE_SAVE_DIR ?= ../local

Expand Down Expand Up @@ -36,7 +38,7 @@ app:
source $(VENV)/Scripts/activate;
fi
export OAUTHLIB_INSECURE_TRANSPORT=1;
uvicorn --host 0.0.0.0 --reload --reload-dir $$(pwd) --reload-include "*.py" --reload-include "*.yaml" --reload-include "*.yml" capellacollab.__main__:app
uvicorn --host $(HOST) --reload --reload-dir $$(pwd) --reload-include "*.py" --reload-include "*.yaml" --reload-include "*.yml" capellacollab.__main__:app

coverage:
pytest \
Expand Down
4 changes: 3 additions & 1 deletion frontend/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@

export NG_FORCE_TTY=false

HOST ?= 127.0.0.1

.ONESHELL:

dev:
ng serve --host 0.0.0.0 --open
ng serve --host $(HOST) --open

test:
if [ $(shell which chromium) ]; \
Expand Down
Loading