S
S
Screamy Di2016-05-03 12:59:15
git
Screamy Di, 2016-05-03 12:59:15

How to deploy a Yii2 application from a Git repository?

Hello!
There is a project on Yii2 (advanced template). When I upload it to the repository, then because of the .gitignore files on BitBucket, a stripped-down version of the application leaves.
Accordingly, when I do pull on the working machine , I get a skeleton, without the vendor directory and a bunch of other files.
The question is, is it possible to deploy this stripped-down application to the full version? Perhaps somewhere configs are stored for restoring untracked files after a pull.
For now, I'm solving the problem by demolishing all .gitignore s except my custom ones. But I think there is a more elegant solution than uploading the whole project to the repository. No wonder the creators did it. gitignore out of the box.
In general, tell me if there is any obvious solution or what to read on this topic.
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita, 2016-05-03
@Screamie

Do not remove the native gitignore, they are very convenient, all the more so vendor should not be in version control, only composer. Speaking of composer, on the working machine, after pull, composer install (not update) and yii migrate should go, in which case the versions of your packages and packages on the working machine will be the same, like the database.
In working with the team, everything is the same, when one of the participants changes the vendor, the others must do composer install and yii migrate.
At the first pull with yii init handles and handles, we edit the configs for our environment.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question