Skip to content

Commit

Permalink
Change assessment_module_manager port to 5100 (#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
marlon-luca-bu authored Jun 17, 2024
1 parent ab320b9 commit dfcad8e
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
redir / /playground 302
reverse_proxy /playground* http://playground:3000
reverse_proxy /logs* http://log-viewer:4998
reverse_proxy http://assessment-module-manager:5000
reverse_proxy http://assessment-module-manager:5100
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ def main():

if env.PRODUCTION:
logger.info("Running in PRODUCTION mode")
uvicorn.run("assessment_module_manager.__main__:app", host="0.0.0.0", port=5000)
uvicorn.run("assessment_module_manager.__main__:app", host="0.0.0.0", port=5100)
else:
logger.warning("Running in DEVELOPMENT mode")
uvicorn.run("assessment_module_manager.__main__:app", host="0.0.0.0", port=5000, reload=True)
uvicorn.run("assessment_module_manager.__main__:app", host="0.0.0.0", port=5100, reload=True)


# Add things to __all__ just to mark them as important to import
Expand Down
2 changes: 1 addition & 1 deletion athena/athena/default_values.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ASSESSMENT_MODULE_MANAGER_DEFAULT_PORT = 5000
ASSESSMENT_MODULE_MANAGER_DEFAULT_PORT = 5100
ASSESSMENT_MODULE_MANAGER_DEFAULT_URL = f"http://localhost:{ASSESSMENT_MODULE_MANAGER_DEFAULT_PORT}"
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
depends_on:
- athena
ports:
- "5000:5000"
- "5100:5100"

module_example:
hostname: module-example
Expand Down
2 changes: 1 addition & 1 deletion docs/run/docker.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Build and start with local images
docker-compose up --build
The assessment module manager API will be available at http://localhost:5000.
The assessment module manager API will be available at http://localhost:5100.

Start with remote images

Expand Down
3 changes: 1 addition & 2 deletions docs/run/local.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ From the Command Line
===========================================

To run Athena, you have to start at least two processes.
The assessment module manager API will be available at http://localhost:5000.
The assessment module manager API will be available at http://localhost:5100.

**Before you start the processes, make sure that you have loaded the environment variables from the** ``.env`` **file in each folder.** This can be achieved using
.. code-block:: bash
Expand All @@ -22,4 +22,3 @@ Start it from the ``module_example`` (or another ``module_*`` folder) using
.. code-block:: bash
poetry run module
2 changes: 1 addition & 1 deletion docs/run/pycharm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ To test a module, you need to start two run configurations:

You can also start any of the run configurations in Debug Mode, to use breakpoints and step through the code.

The assessment module manager API will be available at http://localhost:5000.
The assessment module manager API will be available at http://localhost:5100.
2 changes: 1 addition & 1 deletion playground/src/hooks/base_info_context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type Action =
| { type: 'SET_VIEW_MODE'; payload: ViewMode };

function createInitialState(): BaseInfo {
let defaultUrl = "http://127.0.0.1:5000";
let defaultUrl = "http://127.0.0.1:5100";
if (
typeof window !== "undefined" &&
window.location.hostname !== "localhost"
Expand Down

0 comments on commit dfcad8e

Please sign in to comment.