Composer Deployment for the Cloud
In the following common preparations for the software project and the deployment are described.
Recommended Articles
We recommend to read the following articles before continuing with this tutorial.
Preconditions
You need access to jumphost with you personal Openssh access key. Access an environment via OpenSSH or Putty
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
# 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
"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
Related components
root360 Knowledge Base - This portal is hosted by Atlassian (atlassian.com | Privacy Policy)