A
A
Antonov Dmitry2016-05-17 20:15:17
Django
Antonov Dmitry, 2016-05-17 20:15:17

Making changes to the production server?

Hello! I am developing my blog, after the deployment I make changes mainly through sftp, i.e. I upload all the files directly to the server, tell me how this process can be done using github? And is it possible to specify that some files should not be changed during the update (let's say settings.py - which is clearly different on the production server)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2016-05-17
@BlackTrub

settings.py - which is clearly different on the production server
no
What is the proper way to store settings in a django project?
git status
git pull
./manage.py collectstatic
./manage.py migrate

sudo service uwsgi restart
sudo service nginx restart

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question