Question

How to deploy multiple django projects in one droplet?

Posted June 26, 2020 774 views
DjangoDeployment

Hello guys,

I’m trying to deploy multiple django projects in just one droplet. I used several tutorials here on the forum and on other sites as well, but was not successful with any.

The last thing that a I made was created the files:

  • /etc/systemd/system/{{ myprojectname }}.socket
  • /etc/systemd/system/{{ myprojectname }}.service
  • /etc/nginx/sites-available/{{ myprojectname }}

Can somebody help me?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

Initially , I faced with the same problem . here is what i did . But i’m not sure this is best approach or not.

  1. Create a multiple service for multiple application
  2. create a configuration file for inside /sites-available directory(make sure you’ve changed server name to different domain name or different port if don’t have extra domain)
  3. create symlink for config file .
  4. restart all the stuff .

test it .