Question

how to clone a django app from my laptop to my server without github or bitbucket?

Posted April 8, 2017 1.8k views
DigitalOcean Django Ubuntu 16.04

I have a django app on my laptop and I don’t have github or bitbucket. I want to clone the app from my laptop to my server without github or bitbucket? is it possible?

1 comment

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.

1 answer

Of course, yes.

You can use first compress your app on your laptop using this command tar -zcf my-django-app.tar.gz <my-django-app> where <my-django-app> is the name of the directory where your app is located then you can upload it to your server using scp my-django-app.tar.gz <user name>@<server ip> where <user name> is your name on the server and <server ip> is the public IP address of your server then on your server you can uncompress it using tar -zxf my-django-app.tar.gz.

Hope this helps.

Submit an Answer