Merge pull request #202 from monarc-project/feature/upgrade-to-zf3
Feature/upgrade to zf3pull/255/head
commit
54e49feb92
|
@ -1,13 +1,10 @@
|
||||||
nbproject
|
nbproject
|
||||||
._*
|
._*
|
||||||
.~lock.*
|
|
||||||
.buildpath
|
.buildpath
|
||||||
.DS_Store
|
.DS_Store
|
||||||
.idea
|
.idea
|
||||||
.project
|
.project
|
||||||
.settings
|
.settings
|
||||||
composer.lock
|
|
||||||
vendor/bin
|
|
||||||
migrations
|
migrations
|
||||||
*.sublime-*
|
*.sublime-*
|
||||||
vagrant/.vagrant/
|
vagrant/.vagrant/
|
||||||
|
@ -19,12 +16,14 @@ public/js/
|
||||||
public/img/
|
public/img/
|
||||||
public/flags/
|
public/flags/
|
||||||
public/views/
|
public/views/
|
||||||
|
scripts/public
|
||||||
module/
|
module/
|
||||||
npm-debug.log
|
npm-debug.log
|
||||||
node_modules/
|
node_modules/
|
||||||
bin/
|
bin/
|
||||||
data/DoctrineORMModule/
|
data/*
|
||||||
data/monarc/
|
!data/cache/.gitkeep
|
||||||
data/json/
|
!data/DoctrineORMModule/Proxy/.gitkeep
|
||||||
go-pear.phar
|
!data/LazyServices/Proxy/.gitkeep
|
||||||
|
!data/json/.gitkeep
|
||||||
scripts/public/
|
scripts/public/
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
[submodule "vendor/ZF2"]
|
|
||||||
path = vendor/ZF2
|
|
||||||
url = https://github.com/zendframework/zf2.git
|
|
|
@ -1,6 +1,15 @@
|
||||||
MONARC Changelog
|
MONARC Changelog
|
||||||
================
|
================
|
||||||
|
|
||||||
|
## 2.9.1 (2019-10-29)
|
||||||
|
|
||||||
|
### Upgrade
|
||||||
|
|
||||||
|
- upgrade of the Backend Framework. Now we use ZendFramework 3;
|
||||||
|
- restructured the Monarc code to comply with PSR-2 standard;
|
||||||
|
- updated the usage of the dependencies (Core and FrontOffice) from packagist.org;
|
||||||
|
- some code improvements and bug-fixes.
|
||||||
|
|
||||||
## 2.9.0 (2019-08-23)
|
## 2.9.0 (2019-08-23)
|
||||||
|
|
||||||
### New
|
### New
|
||||||
|
|
|
@ -0,0 +1,184 @@
|
||||||
|
Installation on Debian 10
|
||||||
|
=========================
|
||||||
|
|
||||||
|
# 1. Install LAMP & dependencies
|
||||||
|
|
||||||
|
## 1.1. Install system dependencies
|
||||||
|
|
||||||
|
$ sudo apt-get install zip unzip git gettext curl gsfonts software-properties-common
|
||||||
|
|
||||||
|
Some might already be installed.
|
||||||
|
|
||||||
|
## 1.2. Install MariaDB
|
||||||
|
|
||||||
|
$ sudo apt-get install mariadb-server
|
||||||
|
|
||||||
|
### Secure the MariaDB installation
|
||||||
|
|
||||||
|
$ sudo mysql_secure_installation
|
||||||
|
|
||||||
|
Especially by setting a strong root password.
|
||||||
|
|
||||||
|
## 1.3. Install Apache2
|
||||||
|
|
||||||
|
$ sudo apt-get install apache2
|
||||||
|
|
||||||
|
### Enable modules, settings, and default of SSL in Apache
|
||||||
|
|
||||||
|
$ sudo a2dismod status
|
||||||
|
$ sudo a2enmod ssl
|
||||||
|
$ sudo a2enmod rewrite
|
||||||
|
$ sudo a2enmod headers
|
||||||
|
|
||||||
|
### Apache Virtual Host
|
||||||
|
|
||||||
|
<VirtualHost _default_:80>
|
||||||
|
ServerAdmin admin@localhost.lu
|
||||||
|
ServerName monarc.local
|
||||||
|
DocumentRoot /var/lib/monarc/fo/public
|
||||||
|
|
||||||
|
<Directory /var/lib/monarc/fo/public>
|
||||||
|
DirectoryIndex index.php
|
||||||
|
AllowOverride All
|
||||||
|
Require all granted
|
||||||
|
</Directory>
|
||||||
|
|
||||||
|
<IfModule mod_headers.c>
|
||||||
|
Header always set X-Content-Type-Options nosniff
|
||||||
|
Header always set X-XSS-Protection "1; mode=block"
|
||||||
|
Header always set X-Robots-Tag none
|
||||||
|
Header always set X-Frame-Options SAMEORIGIN
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
SetEnv APP_ENV "development"
|
||||||
|
</VirtualHost>
|
||||||
|
|
||||||
|
|
||||||
|
## 1.4. Install PHP and dependencies
|
||||||
|
|
||||||
|
$ sudo apt-get install php7.3 libapache2-mod-php7.3 php7.3-curl php7.3-gd php7.3-mysql php7.3-apcu php7.3-xml php7.3-mbstring php7.3-intl php7.3-imagick php7.3-zip
|
||||||
|
|
||||||
|
$ curl -sS https://getcomposer.org/installer -o composer-setup.php
|
||||||
|
$ sudo php composer-setup.php --install-dir=/usr/bin --filename=composer
|
||||||
|
|
||||||
|
## 1.5 Apply all changes
|
||||||
|
|
||||||
|
$ sudo systemctl restart apache2.service
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# 2. Installation of MONARC
|
||||||
|
|
||||||
|
## 2.1. MONARC source code
|
||||||
|
|
||||||
|
$ mkdir -p /var/lib/monarc/fo
|
||||||
|
$ git clone https://github.com/monarc-project/MonarcAppFO.git /var/lib/monarc/fo
|
||||||
|
$ cd /var/lib/monarc/fo
|
||||||
|
$ mkdir -p data/cache
|
||||||
|
$ mkdir -p data/LazyServices/Proxy
|
||||||
|
$ chmod -R g+w data
|
||||||
|
$ composer install -o
|
||||||
|
|
||||||
|
|
||||||
|
### Back-end
|
||||||
|
|
||||||
|
The back-end is using the Zend Framework 3.
|
||||||
|
|
||||||
|
Create two symbolic links:
|
||||||
|
|
||||||
|
$ cd module/Monarc
|
||||||
|
$ ln -s ./../../vendor/monarc/core Core
|
||||||
|
$ ln -s ./../../vendor/monarc/frontoffice FrontOffice
|
||||||
|
$ cd ../..
|
||||||
|
|
||||||
|
There are 2 parts:
|
||||||
|
|
||||||
|
* Monarc\FrontOffice is only for MONARC;
|
||||||
|
* Monarc\Core is common to MONARC and to the back office of MONARC.
|
||||||
|
|
||||||
|
|
||||||
|
### Front-end
|
||||||
|
|
||||||
|
The frontend is an AngularJS application.
|
||||||
|
|
||||||
|
$ mkdir node_modules
|
||||||
|
$ cd node_modules
|
||||||
|
$ git clone https://github.com/monarc-project/ng-client.git ng_client
|
||||||
|
$ git clone https://github.com/monarc-project/ng-anr.git ng_anr
|
||||||
|
|
||||||
|
There are 2 parts:
|
||||||
|
|
||||||
|
* one only for MONARC: ng_client;
|
||||||
|
* one common for MONARC and the back office of MONARC: ng_anr.
|
||||||
|
|
||||||
|
|
||||||
|
## 2.2. Databases
|
||||||
|
|
||||||
|
### Create 2 databases
|
||||||
|
|
||||||
|
In your MariaDB interpreter:
|
||||||
|
|
||||||
|
MariaDB [(none)]> CREATE DATABASE monarc_cli DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
|
||||||
|
MariaDB [(none)]> CREATE DATABASE monarc_common DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
|
||||||
|
|
||||||
|
* monarc_common contains models and data created by CASES;
|
||||||
|
* monarc_cli contains all client risk analyses. Each analysis is based on CASES
|
||||||
|
model of monarc_common.
|
||||||
|
|
||||||
|
### Initializes the database
|
||||||
|
|
||||||
|
$ mysql -u user monarc_common < db-bootstrap/monarc_structure.sql
|
||||||
|
$ mysql -u user monarc_common < db-bootstrap/monarc_data.sql
|
||||||
|
|
||||||
|
### Database connection
|
||||||
|
|
||||||
|
Create the configuration file:
|
||||||
|
|
||||||
|
$ sudo cp ./config/autoload/local.php.dist ./config/autoload/local.php
|
||||||
|
|
||||||
|
And configure the database connection:
|
||||||
|
|
||||||
|
return array(
|
||||||
|
'doctrine' => array(
|
||||||
|
'connection' => array(
|
||||||
|
'orm_default' => array(
|
||||||
|
'params' => array(
|
||||||
|
'host' => 'localhost',
|
||||||
|
'user' => 'sqlmonarcuser',
|
||||||
|
'password' => '<password>',
|
||||||
|
'dbname' => 'monarc_common',
|
||||||
|
),
|
||||||
|
),
|
||||||
|
'orm_cli' => array(
|
||||||
|
'params' => array(
|
||||||
|
'host' => 'localhost',
|
||||||
|
'user' => 'sqlmonarcuser',
|
||||||
|
'password' => '<password>',
|
||||||
|
'dbname' => 'monarc_cli',
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# 3. Update MONARC
|
||||||
|
|
||||||
|
Install Grunt:
|
||||||
|
|
||||||
|
$ curl -sL https://deb.nodesource.com/setup_13.x | sudo bash -
|
||||||
|
$ sudo apt-get install nodejs
|
||||||
|
$ npm install -g grunt-cli
|
||||||
|
|
||||||
|
then update MONARC:
|
||||||
|
|
||||||
|
$ ./scripts/update-all.sh -c
|
||||||
|
|
||||||
|
|
||||||
|
# 4. Create initial user
|
||||||
|
|
||||||
|
$ php ./vendor/robmorgan/phinx/bin/phinx seed:run -c ./module/Monarc/FrontOffice/migrations/phinx.php
|
||||||
|
|
||||||
|
|
||||||
|
The username is *admin@admin.test* and the password is *admin*.
|
|
@ -69,10 +69,10 @@ Clone the repository and invoke composer
|
||||||
|
|
||||||
Backend
|
Backend
|
||||||
|
|
||||||
$ mkdir module
|
$ cd module/Monarc
|
||||||
$ cd module/
|
$ ln -s ./../../vendor/monarc/core Core
|
||||||
$ ln -s ./../vendor/monarc/core MonarcCore
|
$ ln -s ./../../vendor/monarc/frontoffice FrontOffice
|
||||||
$ ln -s ./../vendor/monarc/frontoffice MonarcFO
|
$ cd ../..
|
||||||
|
|
||||||
Frontend
|
Frontend
|
||||||
|
|
||||||
|
@ -97,7 +97,7 @@ Update MONARC (including npm config for explicit proxy)
|
||||||
|
|
||||||
Create initial user
|
Create initial user
|
||||||
|
|
||||||
$ php ./vendor/robmorgan/phinx/bin/phinx seed:run -c ./module/MonarcFO/migrations/phinx.php
|
$ php ./vendor/robmorgan/phinx/bin/phinx seed:run -c ./module/Monarc/FrontOffice/migrations/phinx.php
|
||||||
|
|
||||||
# Configure apache (as root)
|
# Configure apache (as root)
|
||||||
|
|
||||||
|
@ -128,4 +128,4 @@ Set file ownership for monarc installation
|
||||||
Header always set X-Frame-Options SAMEORIGIN
|
Header always set X-Frame-Options SAMEORIGIN
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
SetEnv APPLICATION_ENV "development"
|
SetEnv APP_ENV "development"
|
||||||
|
|
|
@ -49,7 +49,7 @@ Especially by setting a strong root password.
|
||||||
Header always set X-Frame-Options SAMEORIGIN
|
Header always set X-Frame-Options SAMEORIGIN
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
SetEnv APPLICATION_ENV "development"
|
SetEnv APP_ENV "development"
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
||||||
|
|
||||||
|
@ -88,15 +88,15 @@ You must create modules with symbolic links to libraries.
|
||||||
|
|
||||||
Create two symbolic links:
|
Create two symbolic links:
|
||||||
|
|
||||||
$ mkdir module
|
$ cd module/Monarc
|
||||||
$ cd module/
|
$ ln -s ./../../vendor/monarc/core Core
|
||||||
$ ln -s ./../vendor/monarc/core MonarcCore
|
$ ln -s ./../../vendor/monarc/frontoffice FrontOffice
|
||||||
$ ln -s ./../vendor/monarc/frontoffice MonarcFO
|
$ cd ../..
|
||||||
|
|
||||||
There are 2 parts:
|
There are 2 parts:
|
||||||
|
|
||||||
* MonarcFO is only for front office;
|
* Monarc\FrontOffice is only for front office;
|
||||||
* MonarcCore is common to the front office and to the back office.
|
* Monarc\Core is common to the front office and to the back office.
|
||||||
|
|
||||||
|
|
||||||
### Frontend
|
### Frontend
|
||||||
|
@ -188,7 +188,7 @@ execute the database migration scripts and compile the translations.
|
||||||
|
|
||||||
# Create initial user
|
# Create initial user
|
||||||
|
|
||||||
$ php ./vendor/robmorgan/phinx/bin/phinx seed:run -c ./module/MonarcFO/migrations/phinx.php
|
$ php ./vendor/robmorgan/phinx/bin/phinx seed:run -c ./module/Monarc/FrontOffice/migrations/phinx.php
|
||||||
|
|
||||||
|
|
||||||
The username is *admin@admin.test* and the password is *admin*.
|
The username is *admin@admin.test* and the password is *admin*.
|
||||||
|
|
|
@ -50,7 +50,7 @@ Especially by setting a strong root password.
|
||||||
Header always set X-Frame-Options SAMEORIGIN
|
Header always set X-Frame-Options SAMEORIGIN
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
SetEnv APPLICATION_ENV "development"
|
SetEnv APP_ENV "development"
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
||||||
|
|
||||||
|
@ -68,31 +68,30 @@ Especially by setting a strong root password.
|
||||||
|
|
||||||
## 2.1. MONARC source code
|
## 2.1. MONARC source code
|
||||||
|
|
||||||
Clone the repository and invoke `composer` using the shipped `composer.phar`:
|
|
||||||
|
|
||||||
$ mkdir -p /var/lib/monarc/fo
|
$ mkdir -p /var/lib/monarc/fo
|
||||||
$ git clone https://github.com/monarc-project/MonarcAppFO.git /var/lib/monarc/fo
|
$ git clone https://github.com/monarc-project/MonarcAppFO.git /var/lib/monarc/fo
|
||||||
$ cd /var/lib/monarc/fo
|
$ cd /var/lib/monarc/fo
|
||||||
$ mkdir data
|
$ mkdir -p data/cache
|
||||||
|
$ mkdir -p data/LazyServices/Proxy
|
||||||
$ chmod -R g+w data
|
$ chmod -R g+w data
|
||||||
$ composer install -o
|
$ composer install -o
|
||||||
|
|
||||||
|
|
||||||
### Back-end
|
### Back-end
|
||||||
|
|
||||||
The back-end is using the Zend Framework.
|
The back-end is using the Zend Framework 3.
|
||||||
|
|
||||||
Create two symbolic links:
|
Create two symbolic links:
|
||||||
|
|
||||||
$ mkdir module
|
$ cd module/Monarc
|
||||||
$ cd module/
|
$ ln -s ./../../vendor/monarc/core Core
|
||||||
$ ln -s ./../vendor/monarc/core MonarcCore
|
$ ln -s ./../../vendor/monarc/frontoffice FrontOffice
|
||||||
$ ln -s ./../vendor/monarc/frontoffice MonarcFO
|
$ cd ../..
|
||||||
|
|
||||||
There are 2 parts:
|
There are 2 parts:
|
||||||
|
|
||||||
* MonarcFO is only for MONARC;
|
* Monarc\FrontOffice is only for MONARC;
|
||||||
* MonarcCore is common to MONARC and to the back office of MONARC.
|
* Monarc\Core is common to MONARC and to the back office of MONARC.
|
||||||
|
|
||||||
|
|
||||||
### Front-end
|
### Front-end
|
||||||
|
@ -170,12 +169,12 @@ Install Grunt:
|
||||||
|
|
||||||
then update MONARC:
|
then update MONARC:
|
||||||
|
|
||||||
$ ./scripts/update-all.sh
|
$ ./scripts/update-all.sh -c
|
||||||
|
|
||||||
|
|
||||||
# 4. Create initial user
|
# 4. Create initial user
|
||||||
|
|
||||||
$ php ./vendor/robmorgan/phinx/bin/phinx seed:run -c ./module/MonarcFO/migrations/phinx.php
|
$ php ./vendor/robmorgan/phinx/bin/phinx seed:run -c ./module/Monarc/FrontOffice/migrations/phinx.php
|
||||||
|
|
||||||
|
|
||||||
The username is *admin@admin.test* and the password is *admin*.
|
The username is *admin@admin.test* and the password is *admin*.
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{"major":2, "minor":9, "hotfix":0}
|
{"major":2, "minor":9, "hotfix":1}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "monarc/skeleton",
|
"name": "monarc/monarc",
|
||||||
"description": "Skeleton for Monarc project",
|
"description": "Monarc application",
|
||||||
"authors": [
|
"authors": [
|
||||||
{"name": "Cyril Rouyer", "email": "cyril@netlor.fr"},
|
{"name": "Cyril Rouyer", "email": "cyril@netlor.fr"},
|
||||||
{"name": "Guillaume Lesniak", "email": "guillaume@netlor.fr"},
|
{"name": "Guillaume Lesniak", "email": "guillaume@netlor.fr"},
|
||||||
|
@ -9,35 +9,25 @@
|
||||||
{"name": "Thomas Metois", "email": "thomas@netlor.fr"},
|
{"name": "Thomas Metois", "email": "thomas@netlor.fr"},
|
||||||
{"name": "Jérôme Lombardi", "email": "jerome.lombardi@cases.lu"},
|
{"name": "Jérôme Lombardi", "email": "jerome.lombardi@cases.lu"},
|
||||||
{"name": "Juan Rocha", "email": "juan.rocha@cases.lu"},
|
{"name": "Juan Rocha", "email": "juan.rocha@cases.lu"},
|
||||||
{"name": "Cédric Bonhomme", "email": "cedric.bonhomme@cases.lu"}
|
{"name": "Cédric Bonhomme", "email": "cedric.bonhomme@cases.lu"},
|
||||||
|
{"name": "Ruslan Baidan", "email": "ruslan.baidan@cases.lu"}
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=5.5",
|
"php": "^7.1",
|
||||||
"zendframework/zendframework": "2.5.3",
|
"ext-json": "*",
|
||||||
"doctrine/doctrine-orm-module": "^0.10",
|
"ext-pdo": "*",
|
||||||
"robmorgan/phinx": "0.5.*",
|
"monarc/frontoffice": "~2.9",
|
||||||
"monarc/core": "dev-master",
|
"zendframework/zend-mvc": "^3.1",
|
||||||
"monarc/frontoffice": "dev-master",
|
"zendframework/zend-di": "^3.1",
|
||||||
"phing/phing": "~2.0",
|
"zendframework/zend-permissions-rbac": "^3.0",
|
||||||
"phpoffice/phpword": "dev-stable",
|
"zendframework/zend-log": "^2.11",
|
||||||
"ramsey/uuid": "^3.8",
|
"zendframework/zend-i18n": "^2.9"
|
||||||
"ramsey/uuid-doctrine": "^1.5"
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"roave/security-advisories": "dev-master",
|
||||||
|
"zendframework/zend-component-installer": "^2.1"
|
||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
"bin-dir": "bin/"
|
"bin-dir": "bin/"
|
||||||
},
|
}
|
||||||
"repositories": [
|
|
||||||
{
|
|
||||||
"type": "vcs",
|
|
||||||
"url": "https://github.com/monarc-project/zm-core"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "vcs",
|
|
||||||
"url": "https://github.com/monarc-project/zm-client"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "vcs",
|
|
||||||
"url": "https://github.com/monarc-project/monarc_phpword"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
BIN
composer.phar
BIN
composer.phar
Binary file not shown.
|
@ -5,37 +5,52 @@
|
||||||
*
|
*
|
||||||
* @see https://github.com/zendframework/ZFTool
|
* @see https://github.com/zendframework/ZFTool
|
||||||
*/
|
*/
|
||||||
$env = getenv('APP_ENV') ?: 'production';
|
$env = getenv('APPLICATION_ENV') ?: 'production';
|
||||||
$appconfdir = getenv('APP_CONF_DIR') ? getenv('APP_CONF_DIR') : '';
|
$appConfDir = getenv('APP_CONF_DIR') ?? '';
|
||||||
|
|
||||||
$confpaths = [ 'config/autoload/{,*.}{global,local}.php' ];
|
$confPaths = ['config/autoload/{,*.}{global,local}.php'];
|
||||||
$datapath = "data";
|
$dataPath = 'data';
|
||||||
if( ! empty($appconfdir) ){
|
if (!empty($appConfDir)) {
|
||||||
$confpaths[] = $appconfdir.'/local.php';
|
$confPaths[] = $appConfDir . '/local.php';
|
||||||
$datapath = $appconfdir.'/data';
|
$dataPath = $appConfDir . '/data';
|
||||||
if(!is_dir($datapath.'/cache')){
|
if (!is_dir($dataPath . '/cache')) {
|
||||||
mkdir($datapath.'/cache');
|
if (!mkdir($concurrentDirectory = $dataPath . '/cache') && !is_dir($concurrentDirectory)) {
|
||||||
|
throw new \RuntimeException(sprintf('Directory "%s" was not created', $concurrentDirectory));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return array(
|
return [
|
||||||
'modules' => array(
|
'modules' => [
|
||||||
|
'Zend\Mvc\Console',
|
||||||
|
'Zend\I18n',
|
||||||
|
'Zend\Mail',
|
||||||
|
'Zend\Log',
|
||||||
|
'Monarc\Core',
|
||||||
|
'Monarc\FrontOffice',
|
||||||
|
'Zend\Cache',
|
||||||
|
'Zend\Form',
|
||||||
|
'Zend\InputFilter',
|
||||||
|
'Zend\Filter',
|
||||||
|
'Zend\Paginator',
|
||||||
|
'Zend\Hydrator',
|
||||||
|
'Zend\Di',
|
||||||
|
'Zend\Router',
|
||||||
|
'Zend\Validator',
|
||||||
'DoctrineModule',
|
'DoctrineModule',
|
||||||
'DoctrineORMModule',
|
'DoctrineORMModule',
|
||||||
'MonarcCore',
|
],
|
||||||
'MonarcFO',
|
'module_listener_options' => [
|
||||||
),
|
'module_paths' => [
|
||||||
'module_listener_options' => array(
|
|
||||||
'module_paths' => array(
|
|
||||||
'./module',
|
'./module',
|
||||||
'./vendor'
|
'./vendor'
|
||||||
),
|
],
|
||||||
'config_glob_paths' => $confpaths,
|
'config_glob_paths' => $confPaths,
|
||||||
'config_cache_enabled' => ($env == 'production'),
|
'config_cache_enabled' => $env === 'production',
|
||||||
'config_cache_key' => 'c8aaaaa11586f8b1bf5565cc6064e70a', // md5('config_cache_key_monarc')
|
'config_cache_key' => 'c8aaaaa11586f8b1bf5565cc6064e70a', // md5('config_cache_key_monarc')
|
||||||
'module_map_cache_enabled' => ($env == 'production'),
|
'module_map_cache_enabled' => $env === 'production',
|
||||||
'module_map_cache_key' => '664579376c4dcdcaa0bcdd0f7e7bf25b', // md5('module_map_cache_key_monarc'),
|
'module_map_cache_key' => '664579376c4dcdcaa0bcdd0f7e7bf25b', // md5('module_map_cache_key_monarc'),
|
||||||
'cache_dir' => $datapath.'/cache/',
|
'cache_dir' => $dataPath . '/cache/',
|
||||||
'check_dependencies' => ($env != 'production'),
|
'check_dependencies' => $env !== 'production',
|
||||||
),
|
],
|
||||||
);
|
];
|
||||||
|
|
|
@ -11,7 +11,11 @@
|
||||||
* file.
|
* file.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$appconfdir = getenv('APP_CONF_DIR') ? getenv('APP_CONF_DIR') : '';
|
use Doctrine\DBAL\Driver\PDOMySql\Driver;
|
||||||
|
use Monarc\Core\Service\DoctrineCacheServiceFactory;
|
||||||
|
use Monarc\Core\Service\DoctrineLoggerFactory;
|
||||||
|
|
||||||
|
$appconfdir = getenv('APP_CONF_DIR') ?? '';
|
||||||
|
|
||||||
$datapath = "data";
|
$datapath = "data";
|
||||||
if( ! empty($appconfdir) ){
|
if( ! empty($appconfdir) ){
|
||||||
|
@ -22,14 +26,14 @@ return array(
|
||||||
// DOCTRINE CONF
|
// DOCTRINE CONF
|
||||||
'service_manager' => array(
|
'service_manager' => array(
|
||||||
'factories' => array(
|
'factories' => array(
|
||||||
'doctrine.cache.mycache' => 'MonarcCore\Service\DoctrineCacheServiceFactory',
|
'doctrine.cache.mycache' => DoctrineCacheServiceFactory::class,
|
||||||
'doctrine.monarc_logger' => 'MonarcCore\Service\DoctrineLoggerFactory',
|
'doctrine.monarc_logger' => DoctrineLoggerFactory::class,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'doctrine' => array(
|
'doctrine' => array(
|
||||||
'connection' => array(
|
'connection' => array(
|
||||||
'orm_default' => array(
|
'orm_default' => array(
|
||||||
'driverClass' => 'Doctrine\DBAL\Driver\PDOMySql\Driver',
|
'driverClass' => Driver::class,
|
||||||
'params' => array(
|
'params' => array(
|
||||||
'host' => 'localhost',
|
'host' => 'localhost',
|
||||||
'port' => 3306,
|
'port' => 3306,
|
||||||
|
@ -45,7 +49,7 @@ return array(
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'orm_cli' => array(
|
'orm_cli' => array(
|
||||||
'driverClass' => 'Doctrine\DBAL\Driver\PDOMySql\Driver',
|
'driverClass' => Driver::class,
|
||||||
'params' => array(
|
'params' => array(
|
||||||
'host' => 'localhost',
|
'host' => 'localhost',
|
||||||
'port' => 3306,
|
'port' => 3306,
|
||||||
|
|
|
@ -1,54 +0,0 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
* Zend Framework (http://framework.zend.com/)
|
|
||||||
*
|
|
||||||
* @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
|
|
||||||
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
|
|
||||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This autoloading setup is really more complicated than it needs to be for most
|
|
||||||
* applications. The added complexity is simply to reduce the time it takes for
|
|
||||||
* new developers to be productive with a fresh skeleton. It allows autoloading
|
|
||||||
* to be correctly configured, regardless of the installation method and keeps
|
|
||||||
* the use of composer completely optional. This setup should work fine for
|
|
||||||
* most users, however, feel free to configure autoloading however you'd like.
|
|
||||||
*/
|
|
||||||
|
|
||||||
// Composer autoloading
|
|
||||||
if (file_exists('vendor/autoload.php')) {
|
|
||||||
$loader = include 'vendor/autoload.php';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (class_exists('Zend\Loader\AutoloaderFactory')) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
$zf2Path = false;
|
|
||||||
|
|
||||||
if (is_dir('vendor/ZF2/library')) {
|
|
||||||
$zf2Path = 'vendor/ZF2/library';
|
|
||||||
} elseif (getenv('ZF2_PATH')) { // Support for ZF2_PATH environment variable or git submodule
|
|
||||||
$zf2Path = getenv('ZF2_PATH');
|
|
||||||
} elseif (get_cfg_var('zf2_path')) { // Support for zf2_path directive value
|
|
||||||
$zf2Path = get_cfg_var('zf2_path');
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($zf2Path) {
|
|
||||||
if (isset($loader)) {
|
|
||||||
$loader->add('Zend', $zf2Path);
|
|
||||||
$loader->add('ZendXml', $zf2Path);
|
|
||||||
} else {
|
|
||||||
include $zf2Path . '/Zend/Loader/AutoloaderFactory.php';
|
|
||||||
Zend\Loader\AutoloaderFactory::factory(array(
|
|
||||||
'Zend\Loader\StandardAutoloader' => array(
|
|
||||||
'autoregister_zf' => true
|
|
||||||
)
|
|
||||||
));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!class_exists('Zend\Loader\AutoloaderFactory')) {
|
|
||||||
throw new RuntimeException('Unable to load ZF2. Run `php composer.phar install` or define a ZF2_PATH environment variable.');
|
|
||||||
}
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "MONARC",
|
"name": "MONARC",
|
||||||
"version": "2.9.0",
|
"version": "2.9.1",
|
||||||
"description": "MONARC Frontoffice App",
|
"description": "Monarc front office application",
|
||||||
"private": true,
|
"private": true,
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -1,24 +1,34 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* This makes our life easier when dealing with paths. Everything is relative
|
use Zend\Mvc\Application;
|
||||||
* to the application root now.
|
|
||||||
*/
|
|
||||||
chdir(dirname(__DIR__));
|
chdir(dirname(__DIR__));
|
||||||
|
|
||||||
// Decline static file requests back to the PHP built-in webserver
|
// Decline static file requests back to the PHP built-in webserver
|
||||||
if (php_sapi_name() === 'cli-server' && is_file(__DIR__ . parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH))) {
|
if (php_sapi_name() === 'cli-server') {
|
||||||
return false;
|
$path = realpath(__DIR__ . parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH));
|
||||||
|
if (__FILE__ !== $path && is_file($path)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
unset($path);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Default Timezone
|
|
||||||
*/
|
|
||||||
if(date_default_timezone_get() != ini_get('date.timezone')){
|
if(date_default_timezone_get() != ini_get('date.timezone')){
|
||||||
date_default_timezone_set('Europe/Luxembourg');
|
date_default_timezone_set('Europe/Luxembourg');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Setup autoloading
|
require 'vendor/autoload.php';
|
||||||
require 'init_autoloader.php';
|
|
||||||
|
|
||||||
// Run the application!
|
if (! class_exists(Application::class)) {
|
||||||
Zend\Mvc\Application::init(require 'config/application.config.php')->run();
|
throw new RuntimeException(
|
||||||
|
"Unable to load application.\n"
|
||||||
|
. "- Type `composer install` if you are developing locally.\n"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
$appConfig = require 'config/application.config.php';
|
||||||
|
if (file_exists('config/development.config.php')) {
|
||||||
|
$appConfig = Zend\Stdlib\ArrayUtils::merge($appConfig, include 'config/development.config.php');
|
||||||
|
}
|
||||||
|
|
||||||
|
Application::init($appConfig)->run();
|
||||||
|
|
|
@ -1,18 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
checkout_if_exists() {
|
|
||||||
if [ -d $1 ]; then
|
|
||||||
pushd $1 >/dev/null
|
|
||||||
git checkout $2
|
|
||||||
popd >/dev/null
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
checkout_if_exists . $1
|
|
||||||
checkout_if_exists module/MonarcCore $1
|
|
||||||
checkout_if_exists module/MonarcBO $1
|
|
||||||
checkout_if_exists module/MonarcFO $1
|
|
||||||
checkout_if_exists node_modules/ng_backoffice $1
|
|
||||||
checkout_if_exists node_modules/ng_client $1
|
|
||||||
checkout_if_exists node_modules/ng_anr $1
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Usage: ./scripts/client-upgrade-db.sh <module> <hostname> <user> <password> <db>
|
# Usage: ./scripts/client-upgrade-db.sh <module> <hostname> <user> <password> <db>
|
||||||
# Example: ./scripts/client-upgrade-db.sh MonarcBO localhost root derp monarc_backoffice
|
# Example: ./scripts/client-upgrade-db.sh Monarc/BackOffice localhost root derp monarc_backoffice
|
||||||
|
|
||||||
MODULE=$1
|
MODULE=$1
|
||||||
SQLHOST=$2
|
SQLHOST=$2
|
||||||
|
@ -11,20 +11,20 @@ SQLBASE=$5
|
||||||
|
|
||||||
path=""
|
path=""
|
||||||
case $MODULE in
|
case $MODULE in
|
||||||
"MonarcCore"|"core")
|
"Monarc/Core"|"core")
|
||||||
path="module/MonarcCore"
|
path="module/Monarc/Core"
|
||||||
if [ ! -d $path ]; then
|
if [ ! -d $path ]; then
|
||||||
path="vendor/monarc/core"
|
path="vendor/monarc/core"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
"MonarcFO"|"frontoffice")
|
"Monarc/FrontOffice"|"frontoffice")
|
||||||
path="module/MonarcFO"
|
path="module/Monarc/FrontOffice"
|
||||||
if [ ! -d $path ]; then
|
if [ ! -d $path ]; then
|
||||||
path="vendor/monarc/frontoffice"
|
path="vendor/monarc/frontoffice"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
"MonarcBO"|"backoffice")
|
"Monarc/BackOffice"|"backoffice")
|
||||||
path="module/MonarcBO"
|
path="module/Monarc/BackOffice"
|
||||||
if [ ! -d $path ]; then
|
if [ ! -d $path ]; then
|
||||||
path="vendor/monarc/backoffice"
|
path="vendor/monarc/backoffice"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,27 +1,12 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [ -d node_modules/ng_backoffice ]; then
|
pushd node_modules/ng_client
|
||||||
pushd node_modules/ng_backoffice
|
grunt compile_translations
|
||||||
grunt compile_translations
|
grunt concat
|
||||||
grunt concat
|
|
||||||
|
|
||||||
if [ -d po ]; then
|
if [ -d po ]; then
|
||||||
for i in $(ls po/*\.po); do
|
for i in $(ls po/*\.po); do
|
||||||
l=$(basename $i .po)
|
l=$(basename $i .po)
|
||||||
msgfmt -o ./po/$l.mo -v ./po/$l.po
|
msgfmt -o ./po/$l.mo -v ./po/$l.po
|
||||||
done;
|
done;
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -d node_modules/ng_client ]; then
|
|
||||||
pushd node_modules/ng_client
|
|
||||||
grunt compile_translations
|
|
||||||
grunt concat
|
|
||||||
|
|
||||||
if [ -d po ]; then
|
|
||||||
for i in $(ls po/*\.po); do
|
|
||||||
l=$(basename $i .po)
|
|
||||||
msgfmt -o ./po/$l.mo -v ./po/$l.po
|
|
||||||
done;
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,22 +1,9 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [ -d node_modules/ng_backoffice ]; then
|
pushd node_modules/ng_client
|
||||||
pushd node_modules/ng_backoffice
|
|
||||||
|
|
||||||
if [ -f node_modules/.bin/grunt ]; then
|
if [ -f node_modules/.bin/grunt ]; then
|
||||||
node_modules/.bin/grunt extract_translations
|
node_modules/.bin/grunt extract_translations
|
||||||
else
|
else
|
||||||
grunt extract_translations
|
grunt extract_translations
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
if [ -d node_modules/ng_client ]; then
|
|
||||||
pushd node_modules/ng_client
|
|
||||||
|
|
||||||
if [ -f node_modules/.bin/grunt ]; then
|
|
||||||
node_modules/.bin/grunt extract_translations
|
|
||||||
else
|
|
||||||
grunt extract_translations
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
# ./get_deliverable.sh <token> <anr_id> <model_id>
|
|
||||||
clear
|
|
||||||
echo "======"
|
|
||||||
echo http://monarcfo/api/client-anr/$2/deliverable?model=$3
|
|
||||||
echo "======"
|
|
||||||
|
|
||||||
curl -H "Token: $1" http://monarcfo/api/client-anr/$2/deliverable?model=$3 > /tmp/exported.docx 2>/dev/null
|
|
||||||
|
|
||||||
if grep "errors" /tmp/exported.docx; then
|
|
||||||
cat /tmp/exported.docx
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo ""
|
|
|
@ -37,68 +37,31 @@ else
|
||||||
find -L public/img -type l -exec rm {} \;
|
find -L public/img -type l -exec rm {} \;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Link modules resources
|
# Link modules resources. TODO: Replace with Grunt tasks to minify the JS and CSS.
|
||||||
if [ -d node_modules/ng_backoffice ]; then
|
cd public/views/ && find ../../node_modules/ng_client/views -name "*.html" -exec ln -s {} \; 2>/dev/null
|
||||||
cd public/views/ && find ../../node_modules/ng_backoffice/views -maxdepth 1 -name "*.html" -exec ln -s {} \; 2>/dev/null
|
cd dialogs/ && find ../../../node_modules/ng_client/views/dialogs -maxdepth 1 -name "*.html" -exec ln -s {} \; 2>/dev/null
|
||||||
cd dialogs/ && find ../../../node_modules/ng_backoffice/views/dialogs -maxdepth 1 -name "*.html" -exec ln -s {} \; 2>/dev/null
|
cd ../../js/ && find ../../node_modules/ng_client/src -name "*" -exec ln -s {} \; 2>/dev/null
|
||||||
cd ../partials/ && find ../../../node_modules/ng_backoffice/views/partials -maxdepth 1 -name "*.html" -exec ln -s {} \; 2>/dev/null
|
cd ../css/ && find ../../node_modules/ng_client/css -name "*" -exec ln -s {} \; 2>/dev/null
|
||||||
cd ../../js/ && find ../../node_modules/ng_backoffice/src -maxdepth 1 -name "*" -exec ln -s {} \; 2>/dev/null
|
cd ../img/ && find ../../node_modules/ng_client/img -name "*" -exec ln -s {} \; 2>/dev/null
|
||||||
cd ../css/ && find ../../node_modules/ng_backoffice/css -name "*" -exec ln -s {} \; 2>/dev/null
|
cd ../flags/ && find ../../node_modules/ng_client/node_modules/ng-country-flags/dist/flags -mindepth 1 -type d -exec ln -s {} \; 2>/dev/null
|
||||||
cd ../img/ && find ../../node_modules/ng_backoffice/img -name "*" -exec ln -s {} \; 2>/dev/null
|
|
||||||
cd ../flags/ && find ../../node_modules/ng_backoffice/node_modules/ng-country-flags/dist/flags -mindepth 1 -type d -exec ln -s {} \; 2>/dev/null
|
|
||||||
|
|
||||||
if [ -d ../../node_modules/ng_anr ]; then
|
cd ../js/
|
||||||
cd ../js/
|
mkdir -p anr
|
||||||
mkdir -p anr
|
cd anr && find ../../../node_modules/ng_anr/src -type f -maxdepth 1 -name "*" -exec ln -s {} \; 2>/dev/null
|
||||||
cd anr && find ../../../node_modules/ng_anr/src -type f -maxdepth 1 -name "*" -exec ln -s {} \; 2>/dev/null
|
cd ..
|
||||||
cd ..
|
|
||||||
|
|
||||||
cd ../views/
|
cd ../views/
|
||||||
mkdir -p anr
|
mkdir -p anr
|
||||||
cd anr && find ../../../node_modules/ng_anr/views -type f -maxdepth 1 -name "*" -exec ln -s {} \; 2>/dev/null
|
cd anr && find ../../../node_modules/ng_anr/views -type f -maxdepth 1 -name "*" -exec ln -s {} \; 2>/dev/null
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
cd ../css/
|
cd ../css/
|
||||||
mkdir -p anr
|
mkdir -p anr
|
||||||
cd anr && find ../../../node_modules/ng_anr/css -type f -maxdepth 1 -name "*" -exec ln -s {} \; 2>/dev/null
|
cd anr && find ../../../node_modules/ng_anr/css -type f -maxdepth 1 -name "*" -exec ln -s {} \; 2>/dev/null
|
||||||
cd ..
|
cd ..
|
||||||
fi
|
|
||||||
|
|
||||||
cd ../..
|
cd ../..
|
||||||
|
|
||||||
pushd node_modules/ng_backoffice
|
pushd node_modules/ng_client
|
||||||
grunt concat
|
grunt concat
|
||||||
popd
|
popd
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -d node_modules/ng_client ]; then
|
|
||||||
cd public/views/ && find ../../node_modules/ng_client/views -name "*.html" -exec ln -s {} \; 2>/dev/null
|
|
||||||
cd dialogs/ && find ../../../node_modules/ng_client/views/dialogs -maxdepth 1 -name "*.html" -exec ln -s {} \; 2>/dev/null
|
|
||||||
cd ../../js/ && find ../../node_modules/ng_client/src -name "*" -exec ln -s {} \; 2>/dev/null
|
|
||||||
cd ../css/ && find ../../node_modules/ng_client/css -name "*" -exec ln -s {} \; 2>/dev/null
|
|
||||||
cd ../img/ && find ../../node_modules/ng_client/img -name "*" -exec ln -s {} \; 2>/dev/null
|
|
||||||
cd ../flags/ && find ../../node_modules/ng_client/node_modules/ng-country-flags/dist/flags -mindepth 1 -type d -exec ln -s {} \; 2>/dev/null
|
|
||||||
|
|
||||||
if [ -d ../../node_modules/ng_anr ]; then
|
|
||||||
cd ../js/
|
|
||||||
mkdir -p anr
|
|
||||||
cd anr && find ../../../node_modules/ng_anr/src -type f -maxdepth 1 -name "*" -exec ln -s {} \; 2>/dev/null
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
cd ../views/
|
|
||||||
mkdir -p anr
|
|
||||||
cd anr && find ../../../node_modules/ng_anr/views -type f -maxdepth 1 -name "*" -exec ln -s {} \; 2>/dev/null
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
cd ../css/
|
|
||||||
mkdir -p anr
|
|
||||||
cd anr && find ../../../node_modules/ng_anr/css -type f -maxdepth 1 -name "*" -exec ln -s {} \; 2>/dev/null
|
|
||||||
cd ..
|
|
||||||
fi
|
|
||||||
|
|
||||||
cd ../..
|
|
||||||
|
|
||||||
pushd node_modules/ng_client
|
|
||||||
grunt concat
|
|
||||||
popd
|
|
||||||
fi
|
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
npm install
|
|
||||||
|
|
||||||
cd node_modules/ng_backoffice
|
|
||||||
npm install
|
|
||||||
|
|
||||||
cd ../..
|
|
||||||
|
|
||||||
# Compile stuff needed for the minified frontend
|
|
||||||
./scripts/compile_translations.sh
|
|
||||||
./scripts/link_modules_resources.sh
|
|
|
@ -1,14 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [ -d module/MonarcCore ]; then
|
php ./vendor/robmorgan/phinx/bin/phinx seed:run -c ./module/Monarc/Core/migrations/phinx.php
|
||||||
php ./vendor/robmorgan/phinx/bin/phinx seed:run -c ./module/MonarcCore/migrations/phinx.php
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -d module/MonarcBO ]; then
|
|
||||||
php ./vendor/robmorgan/phinx/bin/phinx seed:run -c ./module/MonarcBO/migrations/phinx.php
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -d module/MonarcFO ]; then
|
|
||||||
php ./vendor/robmorgan/phinx/bin/phinx seed:run -c ./module/MonarcFO/migrations/phinx.php
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
php ./vendor/robmorgan/phinx/bin/phinx seed:run -c ./module/Monarc/FrontOffice/migrations/phinx.php
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
RED='\033[0;31m'
|
||||||
|
GREEN='\033[0;32m'
|
||||||
|
NC='\033[0m' # No Color
|
||||||
|
|
||||||
bypass=0
|
bypass=0
|
||||||
forceClearCache=0
|
forceClearCache=0
|
||||||
while getopts "hbc" option
|
while getopts "hbc" option
|
||||||
|
@ -31,14 +35,8 @@ pull_if_exists() {
|
||||||
}
|
}
|
||||||
|
|
||||||
migrate_module() {
|
migrate_module() {
|
||||||
if [[ -d $2 ]]; then
|
if [[ -d $1 ]]; then
|
||||||
$1 ./vendor/robmorgan/phinx/bin/phinx migrate -c ./$2/migrations/phinx.php
|
php ./vendor/robmorgan/phinx/bin/phinx migrate -c ./$1/migrations/phinx.php
|
||||||
if [[ -d "${2}/hooks" && -f "${2}/.git/hooks/pre-commit.sh" ]]; then
|
|
||||||
cd $2/.git/hooks
|
|
||||||
ln -s ../../hooks/pre-commit.sh pre-commit 2>/dev/null
|
|
||||||
chmod u+x pre-commit
|
|
||||||
cd $2
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -47,70 +45,35 @@ if [[ ! -f "config/autoload/local.php" && $bypass -eq 0 ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
phpcommand=`command -v php`
|
git pull
|
||||||
if [[ -z "$phpcommand" ]]; then
|
|
||||||
echo "PHP must be installed"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
gitcommand=`command -v git`
|
|
||||||
if [[ -z "$gitcommand" ]]; then
|
|
||||||
echo "Git must be installed"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
$gitcommand pull
|
|
||||||
|
|
||||||
if [ $? != 0 ]; then
|
if [ $? != 0 ]; then
|
||||||
echo "A problem occurred while retrieving remote files from repository."
|
echo "A problem occurred while retrieving remote files from repository."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
composercommand=`command -v composer`
|
composer install -o
|
||||||
if [[ -z "$composercommand" ]]; then
|
|
||||||
if [[ ! -f "composer.phar" ]]; then
|
pathCore="module/Monarc/Core"
|
||||||
# https://getcomposer.org/download/
|
pathFO="module/Monarc/FrontOffice"
|
||||||
# https://getcomposer.org/doc/faqs/how-to-install-composer-programmatically.md
|
|
||||||
EXPECTED_SIGNATURE=$(wget -q -O - https://composer.github.io/installer.sig)
|
if [[ $bypass -eq 0 ]]; then
|
||||||
$phpcommand -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
if [ -e data/backup/credentialsmysql.cnf ]; then
|
||||||
ACTUAL_SIGNATURE=$($phpcommand -r "echo hash_file('SHA384', 'composer-setup.php');")
|
backupdir=data/backup/$(date +"%Y%m%d_%H%M%S")
|
||||||
if [[ "$EXPECTED_SIGNATURE" != "$ACTUAL_SIGNATURE" ]]; then
|
mkdir $backupdir
|
||||||
echo "Error download composer (different hash)"
|
echo -e "${GREEN}Dumping database to $backupdir...${NC}"
|
||||||
rm composer-setup.php
|
mysqldump --defaults-file=data/backup/credentialsmysql.cnf --databases monarc_common > $backupdir/dump-common.sql
|
||||||
exit 1
|
mysqldump --defaults-file=data/backup/credentialsmysql.cnf --databases monarc_cli > $backupdir/dump-cli.sql
|
||||||
fi
|
else
|
||||||
rm composer-setup.php
|
echo -e "${GREEN}Database backup not configured. Skipping.${NC}"
|
||||||
$phpcommand composer-setup.php --quiet
|
|
||||||
fi
|
fi
|
||||||
$phpcommand composer.phar update -o
|
|
||||||
else
|
|
||||||
$composercommand update -o
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
migrate_module $pathCore
|
||||||
currentPath=`pwd`
|
migrate_module $pathFO
|
||||||
pathCore="module/MonarcCore"
|
|
||||||
if [ -d $pathCore ]; then
|
|
||||||
pull_if_exists $pathCore
|
|
||||||
else
|
|
||||||
pathCore="vendor/monarc/core"
|
|
||||||
fi
|
|
||||||
pathBO="module/MonarcBO"
|
|
||||||
if [ -d $pathBO ]; then
|
|
||||||
pull_if_exists $pathBO
|
|
||||||
else
|
|
||||||
pathBO="vendor/monarc/backoffice"
|
|
||||||
fi
|
|
||||||
pathFO="module/MonarcFO"
|
|
||||||
if [ -d $pathFO ]; then
|
|
||||||
pull_if_exists $pathFO
|
|
||||||
else
|
|
||||||
pathFO="vendor/monarc/frontoffice"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -d node_modules && -d node_modules/ng_anr ]]; then
|
if [[ -d node_modules && -d node_modules/ng_anr ]]; then
|
||||||
if [[ -d node_modules/ng_anr/.git ]]; then
|
if [[ -d node_modules/ng_anr/.git ]]; then
|
||||||
pull_if_exists node_modules/ng_backoffice
|
|
||||||
pull_if_exists node_modules/ng_client
|
pull_if_exists node_modules/ng_client
|
||||||
pull_if_exists node_modules/ng_anr
|
pull_if_exists node_modules/ng_anr
|
||||||
else
|
else
|
||||||
|
@ -120,43 +83,19 @@ else
|
||||||
npm install
|
npm install
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $bypass -eq 0 ]]; then
|
cd node_modules/ng_client
|
||||||
if [ -e data/backup/credentialsmysql.cnf ]; then
|
npm install
|
||||||
backupdir=data/backup/$(date +"%Y%m%d_%H%M%S")
|
cd ../..
|
||||||
mkdir $backupdir
|
|
||||||
echo -e "\e[32mDumping database to $backupdir...\e[0m"
|
|
||||||
mysqldump --defaults-file=data/backup/credentialsmysql.cnf --databases monarc_common > $backupdir/dump-common.sql
|
|
||||||
mysqldump --defaults-file=data/backup/credentialsmysql.cnf --databases monarc_cli > $backupdir/dump-cli.sql
|
|
||||||
else
|
|
||||||
echo -e "\e[93mDatabase backup not configured. Skipping.\e[0m"
|
|
||||||
fi
|
|
||||||
|
|
||||||
migrate_module $phpcommand $pathCore
|
|
||||||
migrate_module $phpcommand $pathBO
|
|
||||||
migrate_module $phpcommand $pathFO
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -d node_modules/ng_backoffice ]; then
|
|
||||||
cd node_modules/ng_backoffice
|
|
||||||
npm install
|
|
||||||
cd ../..
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -d node_modules/ng_client ]; then
|
|
||||||
cd node_modules/ng_client
|
|
||||||
npm install
|
|
||||||
cd ../..
|
|
||||||
fi
|
|
||||||
|
|
||||||
./scripts/link_modules_resources.sh
|
./scripts/link_modules_resources.sh
|
||||||
./scripts/compile_translations.sh
|
./scripts/compile_translations.sh
|
||||||
|
|
||||||
if [[ $forceClearCache -eq 1 ]]; then
|
if [[ $forceClearCache -eq 1 ]]; then
|
||||||
# Clear doctrine cache
|
# Clear doctrine cache
|
||||||
# Move to MonarcCore Module.php
|
# Move to Monarc/Core Module.php
|
||||||
$phpcommand ./public/index.php orm:clear-cache:metadata
|
php ./public/index.php orm:clear-cache:metadata
|
||||||
$phpcommand ./public/index.php orm:clear-cache:query
|
php ./public/index.php orm:clear-cache:query
|
||||||
$phpcommand ./public/index.php orm:clear-cache:result
|
php ./public/index.php orm:clear-cache:result
|
||||||
|
|
||||||
# Clear ZF2 cache
|
# Clear ZF2 cache
|
||||||
touch ./data/cache/upgrade && chmod 777 ./data/cache/upgrade
|
touch ./data/cache/upgrade && chmod 777 ./data/cache/upgrade
|
||||||
|
@ -166,3 +105,5 @@ if [[ $forceClearCache -eq 0 && $bypass -eq 0 ]]; then
|
||||||
# Clear ZF2 cache
|
# Clear ZF2 cache
|
||||||
touch ./data/cache/upgrade && chmod 777 ./data/cache/upgrade
|
touch ./data/cache/upgrade && chmod 777 ./data/cache/upgrade
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
|
@ -1,11 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
php ./vendor/robmorgan/phinx/bin/phinx migrate -c ./module/MonarcCore/migrations/phinx.php
|
php ./vendor/robmorgan/phinx/bin/phinx migrate -c ./module/Monarc/Core/migrations/phinx.php
|
||||||
|
|
||||||
if [ -d module/MonarcBO ]; then
|
php ./vendor/robmorgan/phinx/bin/phinx migrate -c ./module/Monarc/FrontOffice/migrations/phinx.php
|
||||||
php ./vendor/robmorgan/phinx/bin/phinx migrate -c ./module/MonarcBO/migrations/phinx.php
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -d module/MonarcFO ]; then
|
|
||||||
php ./vendor/robmorgan/phinx/bin/phinx migrate -c ./module/MonarcFO/migrations/phinx.php
|
|
||||||
fi
|
|
||||||
|
|
|
@ -1,19 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
oldurl_if_exists() {
|
|
||||||
if [ -d $1 ]; then
|
|
||||||
pushd $1 >/dev/null
|
|
||||||
sed -i -e 's/CASES-LU/monarc-project/g' ./.git/config $2
|
|
||||||
git config core.fileMode false
|
|
||||||
popd >/dev/nul
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
oldurl_if_exists . $1
|
|
||||||
oldurl_if_exists module/MonarcCore $1
|
|
||||||
oldurl_if_exists module/MonarcBO $1
|
|
||||||
oldurl_if_exists module/MonarcFO $1
|
|
||||||
oldurl_if_exists node_modules/ng_backoffice $1
|
|
||||||
oldurl_if_exists node_modules/ng_client $1
|
|
||||||
oldurl_if_exists node_modules/ng_anr $1
|
|
|
@ -26,7 +26,6 @@ MONARC will be automatically deployed in an Ubuntu Bionic Server.
|
||||||
|
|
||||||
$ git clone https://github.com/monarc-project/MonarcAppFO
|
$ git clone https://github.com/monarc-project/MonarcAppFO
|
||||||
$ cd MonarcAppFO/vagrant
|
$ cd MonarcAppFO/vagrant
|
||||||
$ export GITHUB_AUTH_TOKEN=<your-github-auth-token>
|
|
||||||
$ vagrant up
|
$ vagrant up
|
||||||
|
|
||||||
Once the VM will be configured by Vagrant, go to the address
|
Once the VM will be configured by Vagrant, go to the address
|
||||||
|
|
|
@ -11,7 +11,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
||||||
|
|
||||||
# Every Vagrant virtual environment requires a box to build off of.
|
# Every Vagrant virtual environment requires a box to build off of.
|
||||||
config.vm.box = "ubuntu/bionic64"
|
config.vm.box = "ubuntu/bionic64"
|
||||||
config.vm.provision :shell, path: "bootstrap.sh", args: "#{ENV['GITHUB_AUTH_TOKEN']}"
|
config.vm.provision :shell, path: "bootstrap.sh"
|
||||||
|
|
||||||
# Disable automatic box update checking. If you disable this, then
|
# Disable automatic box update checking. If you disable this, then
|
||||||
# boxes will only be checked for updates when the user runs
|
# boxes will only be checked for updates when the user runs
|
||||||
|
|
|
@ -1,20 +1,17 @@
|
||||||
#! /usr/bin/env bash
|
#! /usr/bin/env bash
|
||||||
|
|
||||||
# Variables
|
|
||||||
GITHUB_AUTH_TOKEN=$1
|
|
||||||
|
|
||||||
TAG=''
|
|
||||||
|
|
||||||
PATH_TO_MONARC='/home/ubuntu/monarc'
|
PATH_TO_MONARC='/home/ubuntu/monarc'
|
||||||
ENVIRONMENT='PRODUCTION'
|
|
||||||
|
APPENV='local'
|
||||||
|
ENVIRONMENT='development'
|
||||||
|
|
||||||
DBHOST='localhost'
|
DBHOST='localhost'
|
||||||
DBNAME_COMMON='monarc_common'
|
DBNAME_COMMON='monarc_common'
|
||||||
DBNAME_CLI='monarc_cli'
|
DBNAME_CLI='monarc_cli'
|
||||||
DBUSER_ADMIN='root'
|
DBUSER_ADMIN='root'
|
||||||
DBPASSWORD_ADMIN="$(openssl rand -hex 32)"
|
DBPASSWORD_ADMIN="root"
|
||||||
DBUSER_MONARC='sqlmonarcuser'
|
DBUSER_MONARC='sqlmonarcuser'
|
||||||
DBPASSWORD_MONARC="$(openssl rand -hex 32)"
|
DBPASSWORD_MONARC="sqlmonarcuser"
|
||||||
|
|
||||||
upload_max_filesize=200M
|
upload_max_filesize=200M
|
||||||
post_max_size=50M
|
post_max_size=50M
|
||||||
|
@ -33,22 +30,16 @@ locale-gen en_US.UTF-8
|
||||||
dpkg-reconfigure locales
|
dpkg-reconfigure locales
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo -e "\n--- Installing now… ---\n"
|
echo -e "\n--- Installing now… ---\n"
|
||||||
|
|
||||||
echo -e "\n--- Updating packages list… ---\n"
|
echo -e "\n--- Updating packages list… ---\n"
|
||||||
apt-get update
|
apt-get update && apt-get upgrade
|
||||||
|
|
||||||
echo -e "\n--- Install base packages… ---\n"
|
echo -e "\n--- Install base packages… ---\n"
|
||||||
apt-get -y install vim zip unzip git gettext curl gsfonts > /dev/null
|
apt-get -y install vim zip unzip git gettext curl gsfonts > /dev/null
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo -e "\n--- Install MariaDB specific packages and settings… ---\n"
|
echo -e "\n--- Install MariaDB specific packages and settings… ---\n"
|
||||||
# echo "mysql-server mysql-server/root_password password $DBPASSWORD_ADMIN" | debconf-set-selections
|
|
||||||
# echo "mysql-server mysql-server/root_password_again password $DBPASSWORD_ADMIN" | debconf-set-selections
|
|
||||||
apt-get -y install mariadb-server mariadb-client > /dev/null
|
apt-get -y install mariadb-server mariadb-client > /dev/null
|
||||||
# Secure the MariaDB installation (especially by setting a strong root password)
|
# Secure the MariaDB installation (especially by setting a strong root password)
|
||||||
systemctl restart mariadb.service > /dev/null
|
systemctl restart mariadb.service > /dev/null
|
||||||
|
@ -76,7 +67,7 @@ expect -f - <<-EOF
|
||||||
send -- "y\r"
|
send -- "y\r"
|
||||||
expect eof
|
expect eof
|
||||||
EOF
|
EOF
|
||||||
sudo apt-get purge -y expect > /dev/null 2>&1
|
sudo apt-get purge -y expect php-xdebug > /dev/null 2>&1
|
||||||
|
|
||||||
echo -e "\n--- Configuring… ---\n"
|
echo -e "\n--- Configuring… ---\n"
|
||||||
sed -i "s/skip-external-locking/#skip-external-locking/g" $MARIA_DB_CFG
|
sed -i "s/skip-external-locking/#skip-external-locking/g" $MARIA_DB_CFG
|
||||||
|
@ -86,9 +77,7 @@ echo -e "\n--- Setting up our MariaDB user for MONARC… ---\n"
|
||||||
mysql -u root -p$DBPASSWORD_ADMIN -e "CREATE USER '$DBUSER_MONARC'@'%' IDENTIFIED BY '$DBPASSWORD_MONARC';"
|
mysql -u root -p$DBPASSWORD_ADMIN -e "CREATE USER '$DBUSER_MONARC'@'%' IDENTIFIED BY '$DBPASSWORD_MONARC';"
|
||||||
mysql -u root -p$DBPASSWORD_ADMIN -e "GRANT ALL PRIVILEGES ON * . * TO '$DBUSER_MONARC'@'%';"
|
mysql -u root -p$DBPASSWORD_ADMIN -e "GRANT ALL PRIVILEGES ON * . * TO '$DBUSER_MONARC'@'%';"
|
||||||
mysql -u root -p$DBPASSWORD_ADMIN -e "FLUSH PRIVILEGES;"
|
mysql -u root -p$DBPASSWORD_ADMIN -e "FLUSH PRIVILEGES;"
|
||||||
|
systemctl restart mariadb.service > /dev/null
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo -e "\n--- Installing PHP-specific packages… ---\n"
|
echo -e "\n--- Installing PHP-specific packages… ---\n"
|
||||||
apt-get -y install php apache2 libapache2-mod-php php-curl php-gd php-mysql php-pear php-apcu php-xml php-mbstring php-intl php-imagick php-zip php-xdebug > /dev/null
|
apt-get -y install php apache2 libapache2-mod-php php-curl php-gd php-mysql php-pear php-apcu php-xml php-mbstring php-intl php-imagick php-zip php-xdebug > /dev/null
|
||||||
|
@ -101,6 +90,7 @@ done
|
||||||
|
|
||||||
echo -e "\n--- Configuring Xdebug for development ---\n"
|
echo -e "\n--- Configuring Xdebug for development ---\n"
|
||||||
cat > $X_DEBUG_CFG <<EOF
|
cat > $X_DEBUG_CFG <<EOF
|
||||||
|
zend_extension=xdebug.so
|
||||||
xdebug.remote_enable=1
|
xdebug.remote_enable=1
|
||||||
xdebug.remote_connect_back=1
|
xdebug.remote_connect_back=1
|
||||||
xdebug.idekey=IDEKEY
|
xdebug.idekey=IDEKEY
|
||||||
|
@ -114,12 +104,6 @@ a2enmod headers > /dev/null 2>&1
|
||||||
echo -e "\n--- Allowing Apache override to all ---\n"
|
echo -e "\n--- Allowing Apache override to all ---\n"
|
||||||
sudo sed -i "s/AllowOverride None/AllowOverride All/g" /etc/apache2/apache2.conf
|
sudo sed -i "s/AllowOverride None/AllowOverride All/g" /etc/apache2/apache2.conf
|
||||||
|
|
||||||
#echo -e "\n--- We want to see the PHP errors, turning them on ---\n"
|
|
||||||
#sed -i "s/.*error_reporting.*/error_reporting = E_ALL/g" $PHP_INI
|
|
||||||
#sed -i "s/.*display_errors.*/display_errors = On/g" $PHP_INI
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo -e "\n--- Installing composer… ---\n"
|
echo -e "\n--- Installing composer… ---\n"
|
||||||
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer > /dev/null 2>&1
|
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer > /dev/null 2>&1
|
||||||
|
@ -129,35 +113,22 @@ if [ $? -ne 0 ]; then
|
||||||
fi
|
fi
|
||||||
composer self-update
|
composer self-update
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo -e "\n--- Installing MONARC… ---\n"
|
echo -e "\n--- Installing MONARC… ---\n"
|
||||||
cd $PATH_TO_MONARC
|
cd $PATH_TO_MONARC
|
||||||
git config core.fileMode false
|
git config core.fileMode false
|
||||||
if [ "$TAG" != '' ]; then
|
|
||||||
# Checkout the latest tag
|
|
||||||
#latestTag=$(git describe --tags `git rev-list --tags --max-count=1`)
|
|
||||||
git checkout $TAG
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo -e "\n--- Retrieving MONARC libraries… ---\n"
|
echo -e "\n--- Installing the dependencies… ---\n"
|
||||||
composer config -g github-oauth.github.com $GITHUB_AUTH_TOKEN
|
|
||||||
composer install -o
|
composer install -o
|
||||||
|
|
||||||
# Back-end
|
|
||||||
mkdir module
|
# Make modules symlinks.
|
||||||
cd module
|
mkdir -p module/Monarc
|
||||||
ln -s ./../vendor/monarc/core MonarcCore
|
cd module/Monarc
|
||||||
ln -s ./../vendor/monarc/frontoffice MonarcFO
|
ln -s ./../../vendor/monarc/core Core
|
||||||
cd $PATH_TO_MONARC
|
ln -s ./../../vendor/monarc/frontoffice FrontOffice
|
||||||
cd module/MonarcFO/
|
|
||||||
git config core.fileMode false
|
|
||||||
cd $PATH_TO_MONARC
|
|
||||||
cd module/MonarcCore/
|
|
||||||
git config core.fileMode false
|
|
||||||
cd $PATH_TO_MONARC
|
cd $PATH_TO_MONARC
|
||||||
|
|
||||||
|
|
||||||
# Front-end
|
# Front-end
|
||||||
mkdir node_modules
|
mkdir node_modules
|
||||||
cd node_modules
|
cd node_modules
|
||||||
|
@ -178,8 +149,6 @@ chgrp -R www-data $PATH_TO_MONARC
|
||||||
chmod -R 700 $PATH_TO_MONARC
|
chmod -R 700 $PATH_TO_MONARC
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo -e "\n--- Add a VirtualHost for MONARC ---\n"
|
echo -e "\n--- Add a VirtualHost for MONARC ---\n"
|
||||||
cat > /etc/apache2/sites-enabled/000-default.conf <<EOF
|
cat > /etc/apache2/sites-enabled/000-default.conf <<EOF
|
||||||
<VirtualHost *:80>
|
<VirtualHost *:80>
|
||||||
|
@ -199,7 +168,7 @@ cat > /etc/apache2/sites-enabled/000-default.conf <<EOF
|
||||||
Header always set X-Frame-Options SAMEORIGIN
|
Header always set X-Frame-Options SAMEORIGIN
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
SetEnv APPLICATION_ENV $ENVIRONMENT
|
SetEnv APP_ENV $ENVIRONMENT
|
||||||
SetEnv APP_DIR $PATH_TO_MONARC
|
SetEnv APP_DIR $PATH_TO_MONARC
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
EOF
|
EOF
|
||||||
|
@ -209,7 +178,7 @@ systemctl restart apache2.service > /dev/null
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo -e "\n--- Configuration of MONARC data base connection ---\n"
|
echo -e "\n--- Configuration of MONARC database connection ---\n"
|
||||||
cat > config/autoload/local.php <<EOF
|
cat > config/autoload/local.php <<EOF
|
||||||
<?php
|
<?php
|
||||||
\$appdir = getenv('APP_DIR') ? getenv('APP_DIR') : '$PATH_TO_MONARC';
|
\$appdir = getenv('APP_DIR') ? getenv('APP_DIR') : '$PATH_TO_MONARC';
|
||||||
|
@ -303,7 +272,7 @@ echo -e "\n--- Update the project… ---\n"
|
||||||
|
|
||||||
|
|
||||||
echo -e "\n--- Create initial user and client ---\n"
|
echo -e "\n--- Create initial user and client ---\n"
|
||||||
php ./vendor/robmorgan/phinx/bin/phinx seed:run -c ./module/MonarcFO/migrations/phinx.php
|
php ./bin/phinx seed:run -c ./module/Monarc/FrontOffice/migrations/phinx.php
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue