T
T
Timur Abdulaev2020-11-26 00:21:46
1C-Bitrix
Timur Abdulaev, 2020-11-26 00:21:46

How to organize work on the Bitrix combat site?

In order not to break a working site, you need to create a copy of it.
But the question arises: create a local copy or on the same hosting?
If on a hosting, then how to implement it and not duplicate the upload folder, but redirect to it (it weighs a lot).
And are there any features of working with git?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2020-11-26
@webdtim

locally of course. As for the upload folder, you can proxy requests at the web server level.
Example for nginx:

location ~ ^/upload/? {
  try_files $uri @prod;
}		
  
location @prod {
  proxy_pass https://production-site.ru:443;
}

Well, something like that. Not ideal, but better than downloading a folder locally. Some things do not work, for example, image resizing, something else is possible, but in principle it is enough for development.
UPD:
another option is to mount the upload folder via sshfs. But it does not work very stable, unfortunately, and not very fast. Must be mounted in readonly/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question