G
G
gvozd19892018-11-22 11:00:52
PHP
gvozd1989, 2018-11-22 11:00:52

How to deploy simple php projects?

I am looking for a working scheme by which it would be possible to automate the deployment from git. Projects are:
Wordpress/Joomla/OpenCart. Lots of frequent edits: changes to theme files, plugins, etc. Now just diff between commits is uploaded manually via ftp/sftp. Tired. :)
Laravel projects. In principle, it is similar, but you still have to do migrations.
I’m looking at Jenkins, and I don’t understand if it’s possible to organize uploading changes via ftp on it? It is necessary that only changed files are loaded and deleted ones are deleted, and not the entire project. Is it possible to compile styles (gulp/grunt) before unloading and also only loaded changed files?

Answer the question

In order to leave comments, you need to log in

6 answer(s)
D
Dmitry, 2018-11-22
@slo_nik

Good morning.
The easiest option https://www.deployhq.com/
Register, specify the settings for the ssh connection and that's it.

I
Ivan Shumov, 2018-11-22
@inoise

Use jenkins to your heart's content - it's a great tool. Or TeamCity. Stop doing ftp uploads (but you know better, of course) and start using git.
You will still organize the build and deploy script yourself, as it is unique for each project

D
Dmitry Shitskov, 2018-11-22
@Zarom

Jenkins - maybe everything you need.
Where are your repositories? Github, gitlab, bitbucket, etc. have built-in CI, i.e. You can do without Jenkins.

H
hOtRush, 2018-11-22
@hOtRush

https://deployer.org/
https://phptoday.ru/post/deploim-php-prilozhenie-s...

G
gvozd1989, 2018-11-22
@gvozd1989

It seems to me, for my case, it is an overhead projector. Clients don't always have ssh access.

D
Dmitry, 2019-01-11
@dlnsk

Git-ftp is exactly what you need.
https://github.com/git-ftp/git-ftp

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question