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

April 8, 2017 526 views
Django DigitalOcean 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
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.

Have another answer? Share your knowledge.