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

Changes ports #2

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
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: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ LABEL maintainer="Julian Gil <[email protected]>" version="1.0.0"

# Requirements are installed here to ensure they will be cached.
COPY . .
RUN pip3 install -r requirements.txt
RUN pip3 install -r ../requirements-dev.txt
ENV FLASK_CONFIG="../conf/dev.py"
RUN sed -i 's/\r//' /start
RUN chmod +x /start
Expand Down
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:
- static_volume:/app/staticfiles
- media_volume:/app/media
ports:
- "8001:8001"
- "443:8001"

volumes:
static_volume:
Expand Down
2 changes: 1 addition & 1 deletion runserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# TODO: monkey patch should probably happen before everything else
from gevent import monkey; monkey.patch_all()
from gevent.wsgi import WSGIServer
server = WSGIServer(("0.0.0.0",8001), application=app)
server = WSGIServer(("0.0.0.0",443), application=app)
server.serve_forever()
else:
app.run(host="0.0.0.0", port=app.config["PORT"])
Loading