Extranet : Update config to specify application dir

This commit is contained in:
Michael RICOIS 2016-02-15 09:12:02 +01:00
parent d63b9ae693
commit ee9db14fb8
5 changed files with 17 additions and 13 deletions

View File

@ -2,11 +2,11 @@
phpSettings.date.timezone = "Europe/Paris"
phpSettings.display_startup_errors = 0
phpSettings.display_errors = 0
phpSettings.soap.wsdl_cache_dir = "/home/vhosts/extranet-ng/shared/temp/wsdl"
phpSettings.soap.wsdl_cache_dir = "PROJECT_DIR/shared/temp/wsdl"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
appnamespace = "Application"
resources.session.save_path = "/home/vhosts/extranet-ng/shared/temp/sessions"
resources.session.save_path = "PROJECT_DIR/shared/temp/sessions"
resources.useragent.mobile.features.path = APPLICATION_PATH "/../library/Zend/Http/UserAgent/Features/Adapter/Browscap.php"
resources.useragent.mobile.features.classname = "Zend_Http_UserAgent_Features_Adapter_Browscap"
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
@ -35,7 +35,7 @@ profil.mail.email.support = supportdev@scores-decisions.com
profil.mail.email.supportdev = supportdev@scores-decisions.com
profil.mail.email.contact = supportdev@scores-decisions.com
profil.mail.email.production = supportdev@scores-decisions.com
profil.path.shared = "/home/vhosts/extranet-ng/shared"
profil.path.shared = "PROJECT_DIR/shared"
profil.wkhtmltopdf.path = "/usr/local/bin/wkhtmltopdf"
profil.db.sdv1.adapter=mysqli
profil.db.sdv1.params.host=localhost
@ -50,7 +50,7 @@ phpSettings.soap.wsdl_cache_enabled = 1
[development : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 0
phpSettings.display_errors = 1
phpSettings.soap.wsdl_cache_enabled = 0
resources.frontController.params.displayExceptions = 1

View File

@ -2,11 +2,11 @@
phpSettings.date.timezone = "Europe/Paris"
phpSettings.display_startup_errors = 0
phpSettings.display_errors = 0
phpSettings.soap.wsdl_cache_dir = "/home/vhosts/extranet-ng/shared/temp/wsdl"
phpSettings.soap.wsdl_cache_dir = "PROJECT_DIR/shared/temp/wsdl"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
appnamespace = "Application"
resources.session.save_path = "/home/vhosts/extranet-ng/shared/temp/sessions"
resources.session.save_path = "PROJECT_DIR/shared/temp/sessions"
resources.useragent.mobile.features.path = APPLICATION_PATH "/../library/Zend/Http/UserAgent/Features/Adapter/Browscap.php"
resources.useragent.mobile.features.classname = "Zend_Http_UserAgent_Features_Adapter_Browscap"
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
@ -32,7 +32,7 @@ profil.mail.email.support = support@scores-decisions.com
profil.mail.email.supportdev = supportdev@scores-decisions.com
profil.mail.email.contact = contact@scores-decisions.com
profil.mail.email.production = production@scores-decisions.com
profil.path.shared = "/home/vhosts/extranet-ng/shared"
profil.path.shared = "PROJECT_DIR/shared"
profil.wkhtmltopdf.path = "/usr/local/bin/wkhtmltopdf"
profil.db.sdv1.adapter=mysqli
profil.db.sdv1.params.host=localhost

View File

@ -2,11 +2,11 @@
phpSettings.date.timezone = "Europe/Paris"
phpSettings.display_startup_errors = 0
phpSettings.display_errors = 0
phpSettings.soap.wsdl_cache_dir = "/home/vhosts/extranet/shared/temp/wsdl"
phpSettings.soap.wsdl_cache_dir = "PROJECT_DIR/shared/temp/wsdl"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
appnamespace = "Application"
resources.session.save_path = "/home/vhosts/extranet/shared/temp/sessions"
resources.session.save_path = "PROJECT_DIR/shared/temp/sessions"
resources.useragent.mobile.features.path = APPLICATION_PATH "/../library/Zend/Http/UserAgent/Features/Adapter/Browscap.php"
resources.useragent.mobile.features.classname = "Zend_Http_UserAgent_Features_Adapter_Browscap"
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
@ -32,7 +32,7 @@ profil.mail.email.support = support@scores-decisions.com
profil.mail.email.supportdev = supportdev@scores-decisions.com
profil.mail.email.contact = contact@scores-decisions.com
profil.mail.email.production = production@scores-decisions.com
profil.path.shared = "/home/vhosts/extranet/shared"
profil.path.shared = "PROJECT_DIR/shared"
profil.wkhtmltopdf.path = "/usr/local/bin/wkhtmltopdf"
profil.db.sdv1.adapter=mysqli
profil.db.sdv1.params.host=localhost

View File

@ -2,11 +2,11 @@
phpSettings.date.timezone = "Europe/Paris"
phpSettings.display_startup_errors = 0
phpSettings.display_errors = 0
phpSettings.soap.wsdl_cache_dir = "/home/vhosts/extranet/shared/temp/wsdl"
phpSettings.soap.wsdl_cache_dir = "PROJECT_DIR/shared/temp/wsdl"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
appnamespace = "Application"
resources.session.save_path = "/home/vhosts/extranet/shared/temp/sessions"
resources.session.save_path = "PROJECT_DIR/shared/temp/sessions"
resources.useragent.mobile.features.path = APPLICATION_PATH "/../library/Zend/Http/UserAgent/Features/Adapter/Browscap.php"
resources.useragent.mobile.features.classname = "Zend_Http_UserAgent_Features_Adapter_Browscap"
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
@ -32,7 +32,7 @@ profil.mail.email.support = support@scores-decisions.com
profil.mail.email.supportdev = supportdev@scores-decisions.com
profil.mail.email.contact = contact@scores-decisions.com
profil.mail.email.production = production@scores-decisions.com
profil.path.shared = "/home/vhosts/extranet/shared"
profil.path.shared = "PROJECT_DIR/shared"
profil.wkhtmltopdf.path = "/usr/local/bin/wkhtmltopdf"
profil.db.sdv1.adapter=mysqli
profil.db.sdv1.params.host=127.0.0.1

View File

@ -2,6 +2,10 @@
become: yes
copy: src="./config/application.{{ project_config }}.ini" dest="{{ ansistrano_release_path.stdout }}/application/configs/application.ini"
- name: Set path in project config
become: yes
replace: dest="{{ ansistrano_release_path.stdout }}/application/configs/application.ini" regexp="PROJECT_DIR" replace="{{ ansistrano_deploy_to }}"
- name: Set www-data owner of "ansistrano_deploy_to"
become: yes
file: path="{{ ansistrano_deploy_to }}" state=directory recurse=yes owner=www-data group=www-data