I
I
Igor Koltun2019-07-10 12:05:36
Jenkins
Igor Koltun, 2019-07-10 12:05:36

Jenkins deployment concept for PHP projects?

I have set up Jenkins in docker on a separate server. Jenkins connects to the server via ssh using the Publish over ssh plugin and simply does git pull, composer and angular build on the remote server, and so on.

cd /dir && git pull
wait
cd /dir && php yii migrate --interactive=0
wait
cd /dir && composer install
wait
cd /dir && npm install
wait
cd /dir && ng build --prod
wait

I noticed that when there is some error, the build status in Jenkins is successful, which is confusing and the command execution log is saved somehow inconsistently.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Shitskov, 2019-07-10
@Zarom

The concept is this - all these actions must be performed on Jenkins. You need to publish an already assembled project

H
hOtRush, 2019-07-10
@hOtRush

https://phptoday.ru/post/deploim-php-application-s...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question