Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt
hiddentrue

In the following common preparations for the software project and the deployment are described.

In the following common preparations for the software project and the deployment are described.


Recommended Articles

Info

We recommend to read the following articles before continuing with this tutorial.

Preconditions

Project Preparation

We expect the customer to:

  • use git or any comparable versioning control system for their code development 

  • define a branch the productive code could be cloned from e.g. master or a release branch

  • provide access method for git repository and credentials

    • currently supported and recommended is SSH using a private-public-keypair

    • HTTPS with http_user and http_password

    • HTTP with username and password (not recommended) 

.dist example 

Code Block
# This file is a "template" of what your parameters.yml file should look like
# Set parameters here that may be different on each deployment target of the app, e.g. development, staging, production.
# http://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration
parameters:
database_host: ~
database_port: 3306
database_name: ~
database_user: ~
database_password: ~
mailer_transport: smtp
mailer_host: ~
mailer_user: ~
mailer_password: ~
mailer_default_dev_address: noreply@teamshirts.de    

composer.json example    

Code Block
"extra": {
    "symfony-app-dir": "app",
    "symfony-web-dir": "web",
    "symfony-assets-install": "relative",
    "incenteev-parameters": {
        "file": "app/config/parameters.yml",
        "keep-outdated": true,
        "env-map": {
            "database_host": "SYMFONY__ENV__DATABASE__SERVER",
            "database_name": "SYMFONY__ENV__DATABASE__DATABASE",
            "database_user": "SYMFONY__ENV__DATABASE__USERNAME",
            "database_password": "SYMFONY__ENV__DATABASE__PASSWORD",
            "mailer_host": "SYMFONY__ENV__MAILER__HOST",
            "mailer_user": "SYMFONY__ENV__MAILER__USER",
            "mailer_password": "SYMFONY__ENV__MAILER__PASSWORD"
        }
    }
}

Related tutorials

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel in ( "composer" , "php" , "application" , "deployment" ) and space = currentSpace ( ) and ancestor = "2014352487"

Related components

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel in ( "composer" , "php" , "application" , "deployment" ) and space = currentSpace ( ) and ancestor = "2014350220"

Status
colourRed
titleExpert

Table of Contents
exclude(Related * | Recommended * |Table of contents).*


Filter by label (Content by label)
showLabelsfalse
max10
sorttitle
showSpacefalse
titleRelated questions
cqllabel in ( "composer" , "deployment" , "application" ) and space = currentSpace ( ) and ancestor = "1539539030"