M
M
Maxim Fedorov2017-10-19 15:59:31
Regular Expressions
Maxim Fedorov, 2017-10-19 15:59:31

Deployer for running php project?

Given:
- the project is deployed locally, the branches are merged into the dev branch and sent to the repository
- 2 projects are deployed on the remote server (prod and dev)
- I do it on the dev project git pull <remote_alias> devand pull the migrations by hand + update the composer, roll the fixtures
- prod-project for now which is idle, but would do this - after testing the dev branch, I would merge it into master and master, by analogy, would pull it to the prod server.
Ready for normal deployment + labor market dikutet.
I want to install Deployer. So that you don’t have to assemble this whole thing with your hands.
The questions are:

  • Can I roll over to a working project?
    Or it is necessary to organize the project organization on the server in a different way? That is, first install Deployer and set up a project from the repository in it ... Are there any manuals for putting it into operation? Or is it better to do everything from scratch?
  • What about fixtures?
    I don't just use them for testing. And even when adding a feature (for example, new fields), I make changes in the fixtures and roll. How to be? Is there anything to read on workflow regarding this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
dodo512, 2019-07-19
@PolarBearGG

=REGEXEXTRACT(D2 ,"\d+.")
Or
=REGEXREPLACE(D2 ,"(\d+.).*|.","$1")

Z
zorca, 2017-10-19
@Maksclub

1. It’s better to practice on a test server, since Deployer, unlike the git, can easily write: under the root where he wants in general, and under www-data in any neighboring project if desired. So it must be used with caution.
2. Deployer is just a tool, you can write any, absolutely any commands to be executed on the server, you just need some knowledge of Linux commands.
3. The code of all standard recipes is right there, you can optionally remove them from execution and include your own ones.
4. It is better to immediately install Deployer for execution from the command line: dep deployfor Windows, this is done through a wrapper - a BAT file.
5. There are recipes for almost any task, you can just peep the code and write your own implementation.
PySy. According to the fixtures, just create a task with the launch of a command on a remote server and that's it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question