0

I use Putty to run the ec2 server with this code,

python manage.py runserver

but when I shut Putty down, the server is also shut down too.

In order to keep the ec2 server activated, even I shut Putty down how do I start server??

  • Your question isn't clear. What is "manage.py"? What API calls is it making? Shutting down a client shouldn't shut down an EC2 instance. – Tim Sep 08 '20 at 03:41
  • You follow the directions in the [documentation](https://docs.djangoproject.com/en/3.1/howto/deployment/) for running your Python framework app as a service using something like uwsgi or gunicorn. – Michael Hampton Sep 08 '20 at 03:43
  • 1
    You're apparently talking about Django, nothing to do with EC2. Besides a *production* website shouldn't be running through `manage.py` - use Apache or uwsgi or similar. – MLu Sep 08 '20 at 03:52
  • 1
    This is not an EC2 question. – user253751 Sep 15 '20 at 19:05

0 Answers0