Do I use FTP to publish to my Django / Gunicorn / Enginx server - if not how do I publish?

June 20, 2019 313 views
Django

I have followed all of the instructions and was able to successfully a Django, Gunicorn Enginx and PostgreSQL server on Ubuntu 18.04. All of the DNS is working great and from what I can tell, the setup was successful. I now have 3 questions …

  1. Do I set up FTP to publish to the site? If not what means do I use to publish?

  2. The Django virtual environment (per the tutorial) lives in the home directory of the user I made. Is this the correct location for the folder?

  3. Do I need to publish static files to the /static folder that was created? How do I manage this?

1 comment
  • Hiya @Leland9000,

    Unfortunately, I’m not a Django/nginx expert so I’m not sure about the answer for 2 & 3, however, I can provide some advice on your first question.

    Setting up FTP would be one way to publish the files to your website. An alternative would be using a version control system like git and using a remote git server, such as the service that GitHub provides, to store all your files for your site and then clone them to your server.

    Hope that helps to point you in the right direction.
    - Matt.

Be the first one to answer this question.