A
A
Artemy Antipin2016-10-06 07:32:17
git
Artemy Antipin, 2016-10-06 07:32:17

I'm trying to deal with the topic: changes on the local server and how to upload this data to the combat site?

I'm new to Web development and not so long ago I started to study the Django framework, I made the site simple and this is the main question:
The site is written in Django, somehow I managed to put it on the server and it worked, I use Bitbucket, and I'm interested and not entirely clear how to upload changes from the local server to the production server, what commands to use for this in the console, please explain to a newbie? to begin with, I use the commands: git add -A, git commit -m "sms", git push origin master, and what to do next, what commands to use in the console to upload these changes to the site on a non-combat server?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2016-10-06
@Mrchelsea

First you need to download the changes to the server, for example, using the command:
This must be done on the server in the project folder.
Further, it all depends on how it was deployed ( https://docs.djangoproject.com/en/1.8/howto/deploy...
If wsgi, then after the new code is uploaded to the server, you also need to update the wsgi file using the command touch:
Alternatively, if you don't know exactly how Django is deployed, you can simply restart the web server, be it nginx or apache.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question