A
A
Anton Morozov2019-12-25 23:21:46
PHP
Anton Morozov, 2019-12-25 23:21:46

How to understand deployment?

Hello.
I am writing my small project in PHP as a training.
I want to correctly deploy it to the server.
But there is some misunderstanding:
1) I use a composer to download the library from the github that is used in the project
2) I prescribe in the gitignor so that the library is not uploaded to the repository of my project
3) I upload the project to git
4) I will make a git clone on the server, the project files will be loaded ( which I wrote), but there is no library.
Would it be correct for the composer on the server to download the library to the project folder or upload all files to the github, including the library?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Neverov, 2019-12-25
@fanofmarta

First.
There are many libraries, including dev dependencies that are needed only for development.
You can also read about CI/CD and the automated deployment process from git to your server.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question