C
C
Coservas2019-05-21 12:20:07
symfony
Coservas, 2019-05-21 12:20:07

How drone works?

Hello.
The project uses Symfony. If the connection to the database is broken, then when calling the symfony console, errors are always thrown about this.
Previously, I used drone to build the project, but I decided to transfer everything to gitlab and ran into a problem with the build.
Drone config file:

pipeline:
    prebuild:
        image: ...
        commands:
            - ...
            - composer install --no-interaction --ansi --no-suggest --prefer-dist
            - bin/console <любая команда>

gitlab config file:
prebuild:
    image:  ...
    stage: prebuild
    script:
        - composer install --no-interaction --ansi --no-suggest --prefer-dist
        - bin/console <любая команда>

When building using drone, when executing any console command, everything is successful, although the connection to the database is not established. In gitlab, there are problems with this and it is necessary to add the database as a service.
Actually the question is: why does the drone assembly work without errors if the application has no connection to the database?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
BoShurik, 2019-05-21
@Serega95

Config doctrine.dbal.connections.default.server_versionmust be initialized (per connection)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question