Skip to content

Commit

Permalink
Change port 5000 to 5001 to avoid clash with macos (#244)
Browse files Browse the repository at this point in the history
* Change port 5000 to 5001 to avoid clash with macos

* missed one

* Change flask port too
  • Loading branch information
benfoley committed Nov 8, 2021
1 parent 151e64f commit 34144c0
Show file tree
Hide file tree
Showing 20 changed files with 23 additions and 434 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ RUN echo "export LANG=C.UTF-8" >> ~/.zshrc
WORKDIR /elpis
RUN echo "export POETRY_PATH=$(poetry env info -p)" >> ~/.zshrc
RUN echo "export PATH=$PATH:${POETRY_PATH}/bin:/kaldi/src/bin/" >> ~/.zshrc
RUN echo "alias run=\"poetry run flask run --host=0.0.0.0 --port=5000\"" >> ~/.zshrc
RUN echo "alias run=\"poetry run flask run --host=0.0.0.0 --port=5001\"" >> ~/.zshrc
RUN cat ~/.zshrc >> ~/.bashrc

# ENV vars for non-interactive running
Expand All @@ -221,7 +221,9 @@ ENV LANG=C.UTF-8

WORKDIR /elpis

ENTRYPOINT ["poetry", "run", "flask", "run", "--host", "0.0.0.0"]
ENTRYPOINT ["poetry", "run", "flask", "run", "--host", "0.0.0.0", "--port", "5001"]

EXPOSE 5000:5000
EXPOSE 3000:3000
# 5001 is for the Flask server
EXPOSE 5001
# 3000 is for the Webpack dev server
EXPOSE 3000
Binary file not shown.
Binary file removed docs/wiki/assets/dev-in-vscode/debug-run-vscode.png
Binary file not shown.
24 changes: 0 additions & 24 deletions docs/wiki/assets/dev-in-vscode/devcontainer.json

This file was deleted.

Binary file removed docs/wiki/assets/dev-in-vscode/launch-selector.png
Binary file not shown.
52 changes: 0 additions & 52 deletions docs/wiki/assets/dev-in-vscode/launch.json

This file was deleted.

11 changes: 0 additions & 11 deletions docs/wiki/assets/dev-in-vscode/settings.json

This file was deleted.

Binary file removed docs/wiki/assets/dev-in-vscode/vsc-extentions.png
Binary file not shown.
Binary file removed docs/wiki/assets/dev-in-vscode/vsc-in-container.png
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 34144c0

Please sign in to comment.