Skip to content

Commit

Permalink
feat: initialise supabase containers
Browse files Browse the repository at this point in the history
  • Loading branch information
skorekm committed Jul 16, 2024
1 parent 106eaaa commit d7e4eb1
Show file tree
Hide file tree
Showing 6 changed files with 429 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,5 @@
# typescript
*.tsbuildinfo
next-env.d.ts

/supabase/
2 changes: 1 addition & 1 deletion backend/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ elif [[ "${1}" == "api-server-dev" ]]; then
exit 1
fi
echo "Running api-server-dev"
exec uvicorn cpf.main:rest_api_app --factory --reload --host 0.0.0.0 --port 8000
exec uvicorn cpf.main:rest_api_app --factory --reload --host 0.0.0.0 --port 8001
elif [[ "${1}" == "data-loader" ]]; then
export PYTHONPATH=/src:${PYTHONPATH}
exec python cpf/main.py data-loader
Expand Down
2 changes: 1 addition & 1 deletion backend/src/cpf/adapters/inbound/data_loader/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ def start_data_upload() -> None:
# Create admin account
user_service = get_user_management_service()
# TODO Create new service method for admin account creation when role management system will be ready
user_service.create_new_user(email="[email protected]", first_name="Cpf", last_name="Admin")
# user_service.create_new_user(email="[email protected]", first_name="Cpf", last_name="Admin")
2 changes: 1 addition & 1 deletion backend/src/cpf/gunicorn.conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import os

# Server and Worker configuration
bind = "0.0.0.0:8000"
bind = "0.0.0.0:8001"
workers = os.getenv("GUNICORN_WORKERS", multiprocessing.cpu_count() * 2 + 1)
worker_class = "uvicorn.workers.UvicornWorker"
worker_connections = 1000
Expand Down
Loading

0 comments on commit d7e4eb1

Please sign in to comment.