-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add packaging support for 16.04 (and remove gunicorn) #1127
Conversation
/cc @3XX0 |
Just did a sanity check and it worked without issue. |
e533941
to
49ba398
Compare
@gheinrich any concerns with this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried starting DIGITS with python -m digits
and this is working for me.
-d, --debug Run the application in debug mode (reloads when the | ||
source changes and gives more detailed error messages) | ||
--version Print the version number and exit | ||
python -m digits |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so "[Optional] Enable support for plug-ins" is not optional anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
while you're at it, why not add a console_scripts
entry point? So we can start DIGITS by just typing digits [options]
from anywhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Technically, it is still optional. You can run
python -m digits
withoutpip install digits
as long as you're in$DIGITS_ROOT
. - I was having problems with that, but I think it's probably fixed by https://github.com/NVIDIA/DIGITS/pull/1124/files. Let me check again...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I think I'll leave digits-devserver
in there for now and keep telling people to use it. Next step can be:
- PyPI support
- Console entry point (it does work now)
b388284
to
b50f7ff
Compare
Gunicorn complicates packaging (especially with Systemd) We're not getting any of the advantages that usually come with gunicorn because our server is single-process and single-thread We can handle the auto-restart with the init system service
Various other small packaging changes/improvements Rename nginx to NGINX: https://forum.nginx.org/read.php?2,255874,255879
Add packaging support for 16.04 (and remove gunicorn)
Continuation of #1113
As explained in the commit messages, gunicorn isn't doing any good for us at present.
Since #1121,
digits-devserver
isn't really required. Because we're already removingdigits-server
in this PR, I think it makes sense to remove both at once.