D
D
drboboev2017-03-22 10:12:00
git
drboboev, 2017-03-22 10:12:00

Two versions of the site. The first is for the user, the second is for developers. Is it possible?

Good afternoon.
I would like to clarify with Git experts. Is it possible to create two versions of the site? The current version is user's, i.e. files are taken from the stable version for users, the user visits the site.ru link and everything works for him. Development version - for developers, so that they can develop, test and debug the site by following the same site.ru link, but with the is_developer flag, the site files are loaded from the new version, which has not yet been accepted for other users.
This approach is necessary for developers, testers and other "privileged" users.
Is it possible? If not git, then there may be other similar systems or even dig in a different direction.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
R
riot26, 2017-03-22
@riot26

Usually they raise a dev version on a separate domain without crutches like tricky flags. The dev version is hidden from search engines, the database is used stripped down without sensitive data just in case. The dev version, of course, is in a separate git branch. And there are probably a thousand ways to deploy this goodness to servers.

D
dmitriy, 2017-03-22
@dmitriylanets

two branches develop and master, two sites working and development => gitflow

A
Adamos, 2017-03-22
@Adamos

Somewhat strange approach.
Why would developers go to the same link - and see a different site? And if they still want to compare what they have done now with what is spinning on the market?
And base under a site - the general, whether that? This way you are guaranteed fun when developers and testers go wrong across all user data.
The privileged user of the site - that's another story, the admin really needs to work with the combat site, but what does development have to do with it?

N
Nurlan, 2017-03-22
@daager

We did this at the nginx level, if there is an admin cookie, then root leads to another place

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question