Question

How to deploy multiple django projects in one droplet?

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/{{ my_project_name }}.socket
  • /etc/systemd/system/{{ my_project_name }}.service
  • /etc/nginx/sites-available/{{ my_project_name }}

Can somebody help me?

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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 .