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

Added instructions for deploying to Heroku. #28

Closed
wants to merge 1 commit into from

Conversation

iphoting
Copy link
Contributor

Some instructions for deploying to Heroku, an alternative to GAE.

Heroku
******
You can also run the server on `Heroku <https://heroku.com>`_ by adding ``gunicorn`` to ``requirements.txt``
and creating a ``Procfile`` with ``web: gunicorn --pythonpath youtube_dl_server app:app -w 4 --log-file -``.
Copy link
Owner

Choose a reason for hiding this comment

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

I'm going to include a default Procfile in the main repo, do you think the -w option can be ommitted?, it's not mentioned in the heroku docs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, you're right!

In https://devcenter.heroku.com/articles/python-gunicorn#basic-configuration:

The WEB_CONCURRENCY environment variable is automatically set by Heroku, based on the 
processes' Dyno size. This feature is intended to be a sane starting point for your 
application. We recommend knowing the memory requirements of your processes and setting 
this configuration variable accordingly.

So I guess it's best that we leave -w out. 😀

@jaimeMF
Copy link
Owner

jaimeMF commented Mar 1, 2015

Merged in e3156ce and added the files in a8ec212, thanks!

@jaimeMF jaimeMF closed this Mar 1, 2015
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.

2 participants