sumpen
sumpen

Reputation: 541

Deploy to my server with Git

I have a development of a django project on my day-to-day laptop. Now I have put together a server with Ubuntu, nginx, gunicorn with postgreSQL.

I have pip't git on both my laptop and server. And done a 'git init' in my project on the laptop.

Now I am trying to push/deploy this on my local server.

I have done tons of commands that, more or less, look like this

git push --set-upstream ssh://[email protected]/home/admin/Django/ master

Do not think I have to say that I am new to all this exciting stuff. It is very interesting, but now my head is foggy and I am stuck.

Pointers in right direction are much appreciated! =)

Upvotes: 1

Views: 129

Answers (1)

obelix15012
obelix15012

Reputation: 101

First you have to add and commit to the current local repo. Try 'git add' and 'git commit' for that.

Next, add the remote "server" machine, use "git remote add", such as:

git remote add origin 192.168.1.240:/home/admin/Django

Finally use the 'git push' command to push the local to the remote:

git push origin master

Upvotes: 3

Related Questions