N
N
n0e12014-08-04 13:53:41
PHP
n0e1, 2014-08-04 13:53:41

How to put down chown when deploying to prod?

Good afternoon!
Dev-environment works under one user and group, production - under another.
What is the most efficient way to change the owner of directories (for example, through a bash script) when deploying via SFTP?
Or is there a better approach?
Dev environment: MAMP, PHPStorm.
Production: Debian at DigitalOcean.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Puma Thailand, 2014-08-04
@opium

deploy from the git under the required user, everything will be fine by default.

K
kompi, 2014-08-04
@kompi

A compromise option is through a common group, with group rights, or as opium wrote.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question