Remove parameters.yml from .gitignore.
Import parameters.php on app/config/config.yml
imports:
- { resource: parameters.php }
cd $OPENSHIFT_REPO_DIR | |
php $(find -name build_bootstrap.php) |
<?php | |
$container->setParameter('database_host', getenv("OPENSHIFT_MYSQL_DB_HOST")); | |
$container->setParameter('database_port', getenv("OPENSHIFT_MYSQL_DB_PORT")); | |
$container->setParameter('database_name', getenv("OPENSHIFT_APP_NAME")); | |
$container->setParameter('database_user', getenv("OPENSHIFT_MYSQL_DB_USERNAME")); | |
$container->setParameter('database_password', getenv("OPENSHIFT_MYSQL_DB_PASSWORD")); | |
?> |
Remove parameters.yml from .gitignore.
Import parameters.php on app/config/config.yml
imports:
- { resource: parameters.php }