File tree 6 files changed +7
-7
lines changed 6 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,6 @@ RUN pipenv lock -r > requirements.txt
15
15
RUN pip uninstall --yes pipenv
16
16
RUN pip install -r requirements.txt
17
17
18
- EXPOSE 5000
18
+ EXPOSE 5001
19
19
20
20
CMD [ "python" , "app.py" ]
Original file line number Diff line number Diff line change 6
6
from werkzeug .exceptions import HTTPException
7
7
8
8
from auth .jwt import jwt , update_token
9
- from routes .advent import advent
9
+ from routes .puzzle import puzzle
10
10
from routes .auth import auth
11
11
12
12
def handle_exception (error ):
@@ -39,7 +39,7 @@ def create_app():
39
39
40
40
jwt .init_app (app )
41
41
42
- app .register_blueprint (advent , url_prefix = "/advent" )
42
+ app .register_blueprint (puzzle , url_prefix = "/advent" )
43
43
app .register_blueprint (auth , url_prefix = "/auth" )
44
44
45
45
app .register_error_handler (HTTPException , handle_exception )
@@ -48,4 +48,4 @@ def create_app():
48
48
49
49
if __name__ == "__main__" :
50
50
app = create_app ()
51
- app .run (host = "0.0.0.0" )
51
+ app .run (host = "0.0.0.0" , port = 5001 )
Original file line number Diff line number Diff line change 2
2
3
3
from advent .calendar .calendar import calendar
4
4
5
- advent = Blueprint ("advent" , __name__ )
5
+ puzzle = Blueprint ("advent" , __name__ )
6
6
7
- @advent .route ("/description" , methods = ["GET" ])
7
+ @puzzle .route ("/description" , methods = ["GET" ])
8
8
def description ():
9
9
year = int (request .args .get ("year" ))
10
10
day = int (request .args .get ("day" ))
File renamed without changes.
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ services:
9
9
volumes :
10
10
- " ./backend:/backend"
11
11
ports :
12
- - " 5000:5000 "
12
+ - " 5001:5001 "
13
13
env_file : config/.flask.env
14
14
15
15
database :
You can’t perform that action at this time.
0 commit comments