Skip to content

Change port to 9000 #1

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

Merged
merged 2 commits into from
Aug 25, 2022
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
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ COPY app/ ./app
# Clean up the Python compilation cache
RUN find ./ -type f -name '*.py[co]' -delete -o -type d -name __pycache__ -delete

ENV PORT=9000

CMD invoke -c prod_tasks prodserver -p $PORT
2 changes: 1 addition & 1 deletion app/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@


def start_dev_server():
app.run("0.0.0.0", port=8080, debug=True)
app.run("0.0.0.0", port=9000, debug=True)


if __name__ == "__main__":
Expand Down
4 changes: 2 additions & 2 deletions docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
context: .
dockerfile: Dockerfile
ports:
- 8080:8080
- 9000:9000
environment:
API_KEY: foo
PORT: 8080
PORT: 9000
2 changes: 1 addition & 1 deletion prod_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


@task
def prodserver(context, daemon=False, unbuffered=True, host='0.0.0.0', port=8080, workers=2, timeout=3600):
def prodserver(context, daemon=False, unbuffered=True, host='0.0.0.0', port=9000, workers=2, timeout=3600):
daemon = ' --daemon' if daemon is True else ''
unbuffered = 'TRUE' if unbuffered is True else 'FALSE'
app = 'server:app'
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ flask
flask-restx
flask-swagger-ui
gunicorn
werkzeug==2.0.*