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

chore(tutorial): clean up & automate look tests #1611

Merged
merged 6 commits into from
Nov 23, 2019

Conversation

vytas7
Copy link
Member

@vytas7 vytas7 commented Nov 20, 2019

This PR builds further upon the look tutorial improvements delivered by @cravindra in #1558 , and aims to run these tests in Travis to make sure our tutorial stays valid.

@@ -1,3 +1,5 @@
gunicorn==19.9.0
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that our recommended way to run the look example with gunicorn does not work on Gunicorn 20.0.0.

However, if I interpret benoitc/gunicorn#2175 correctly, a fix may be already in master or under way.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For what it's worth, I generally import and use gunicorn directly in my apps when wrapping gunicorn. We might investigate doing that here as well.

Copy link
Member Author

@vytas7 vytas7 Nov 23, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that's generally a good approach. I have adopted it at work for some development servers (we use Nginx+uWSGI on prod though) as it's easy to toss in a static route, inject some dependencies or w/e needed for the dev environment when it is just Python code.

However, I'm not sure that's a good approach here in this "look" tutorial as we recommend running gunicorn like that and like that. We could of course improve that, but IMHO running gunicorn in the command line is arguably easier for new users. Plus, it's much easier to swap out command-line unicorn to something else, for instance, waitress for Windows folks etc.

@codecov
Copy link

codecov bot commented Nov 20, 2019

Codecov Report

Merging #1611 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #1611   +/-   ##
======================================
  Coverage     100%    100%           
======================================
  Files          40      40           
  Lines        2671    2671           
  Branches      395     395           
======================================
  Hits         2671    2671

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d71a5bf...08368f0. Read the comment docs.

Copy link
Member

@jmvrbanac jmvrbanac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm.

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

Successfully merging this pull request may close these issues.

None yet

3 participants