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

[docs] Update how setup the HTTP server in web_app.jl #3131

Merged
merged 3 commits into from
Nov 15, 2022
Merged

Conversation

odow
Copy link
Member

@odow odow commented Nov 15, 2022

@quinnj: your recent PR to HTTP.jl, JuliaWeb/HTTP.jl#960, broke the JuMP documentation.

See here for the debugging: #3130

We use HTTP in a tutorial to explain how to put a JuMP model behind a web server:
https://jump.dev/JuMP.jl/stable/tutorials/applications/web_app/

Is this fix the right way for us to setup the server? In somewhat poor form, I want to run the server and call it as a client from the same instance of Julia, just to simplify the process of building the documentation.

@codecov
Copy link

codecov bot commented Nov 15, 2022

Codecov Report

Base: 97.65% // Head: 97.65% // No change to project coverage 👍

Coverage data is based on head (89ef525) compared to base (67b92bc).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3131   +/-   ##
=======================================
  Coverage   97.65%   97.65%           
=======================================
  Files          33       33           
  Lines        4383     4383           
=======================================
  Hits         4280     4280           
  Misses        103      103           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@odow
Copy link
Member Author

odow commented Nov 15, 2022

Urgh. Running the file works locally:

julia> include("docs/src/tutorials/applications/web_app.jl")
[ Info: Precompiling JuMP [4076af6c-e467-56ae-b986-b466b2749572]
[ Info: Listening on: 127.0.0.1:8080
[ Info: Server on 127.0.0.1:8080 closing

Perhaps that's why I ended up with what I originally had.

@odow odow merged commit 35ab165 into master Nov 15, 2022
@odow odow deleted the od/docs-http branch November 15, 2022 20:06
@quinnj
Copy link

quinnj commented Nov 18, 2022

Sorry for the breakage; this was fixed pretty quickly in the https://github.com/JuliaWeb/HTTP.jl/releases/tag/v1.5.3 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants