Browse Source

Adaptation baseUrl distrib

dev
Guillaume Bourgeois 6 years ago
parent
commit
71cda66e3f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      common/config/bootstrap.php

+ 1
- 1
common/config/bootstrap.php View File

@@ -44,7 +44,7 @@ Yii::setAlias('producer', dirname(dirname(__DIR__)) . '/producer');

$server_name = $_SERVER['SERVER_NAME'] ;
Yii::setAlias('@domainName', (YII_ENV === 'dev') ? (($server_name == 'localhost') ? 'localhost' : 'laboiteapain-dev.net') : 'laboiteapain.net');
Yii::setAlias('@baseUrl', ($server_name == 'localhost') ? '/laboiteapain/' : '/');
Yii::setAlias('@baseUrl', ($server_name == 'localhost') ? '/distrib/' : '/');
Yii::setAlias('@baseUrlFrontend', (($server_name == 'localhost') ? '/frontend/web' : ''));
Yii::setAlias('@baseUrlBackend', (($server_name == 'localhost') ? '/backend/web' : ''));
Yii::setAlias('@baseUrlProducer', (($server_name == 'localhost') ? '/producer/web' : ''));

Loading…
Cancel
Save