Steve Steve - 15 days ago 5
Git Question

How to deploy Django app on Ubuntu when using Gitlab

I have create a simple Django application, then I have commit and push to Gitlab. Finally I would like to install that application on my "production server" which is running ubuntu so from that server terminal I run the command:

git clone https://domain.com/path/to/git


I cannot find my python code among the file cloned.

What is the correct way to get the python code from the gitlab repository?

Answer

The problem was the branch, I solve choosing a specific branch, applying the option "-b" followed by the proper branch name "develop":

git clone -b develop https://example.com/username/projectname.git
Comments