By laviscoacc
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 ?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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
Heya,
The best solution I think is to have your code in github as a repository . This will ensure that you can track changes you’ve done and even revert back to a previous state if something goes wrong. Not to mention that you would be able to use that project (if needed) on other workplaces without going through the hassle to manually migrate it.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.