Steve Steve - 1 year ago 133
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

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 Source

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
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download