I have created a droplet. This droplet is all set up with Python, Django, and Postgres. Now I want this droplet to use my existing django project instead of dummy django project that is live on my droplet. How can I do this ?
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.
Click below to sign up and get $100 of credit to try our products over 60 days!
Hi there,
What I could suggest is to create a private GitHub repository and push your existing project there.
Then on your Droplet, you could use the git clone command and clone your project from GitHub to the Droplet and change the dummy files with your actual project.
After that you could still make the changes to your local project and then push them to GitHub and pull them to your Droplet.
Let me know how it goes!
Alternatively you could use the DigitalOcean App platform as it would automate the whole process for you:
https://www.digitalocean.com/community/tutorials/how-to-deploy-django-to-app-platform
Regards, Bobby