Master branch should alwys be working.

pull/39/head
Cédric Bonhomme 2017-08-07 10:25:18 +02:00
parent f84c47ad15
commit edc51284fa
No known key found for this signature in database
GPG Key ID: A1CB94DE57B7A70D
1 changed files with 19 additions and 9 deletions

View File

@ -1,6 +1,17 @@
Installation on Ubuntu 17.04 Installation on Ubuntu 17.04
============================ ============================
The master branch should always be working and it is recommended to install the
project using this one.
If you have already installed MONARC and want to upgrade to a later version, you
can use the provided script:
$ scripts/update-all.sh
$ sudo systemctl restart apache2
PHP & MySQL PHP & MySQL
----------- -----------
@ -95,7 +106,7 @@ There are 2 parts:
* one only for front office: ng_client; * one only for front office: ng_client;
* one common for front office and back office: ng_anr. * one common for front office and back office: ng_anr.
It is developed with Angular framework version 1 It is developed with Angular framework version 1.
![Arbo](pictures/arbo3.png "Arbo") ![Arbo](pictures/arbo3.png "Arbo")
@ -120,7 +131,7 @@ Note: The built-in CLI server is **for development only**.
To setup Apache, setup a virtual host to point to the public/ directory of the To setup Apache, setup a virtual host to point to the public/ directory of the
project and you should be ready to go! It should look something like below: project and you should be ready to go! It should look something like below:
<VirtualHost *:80> <VirtualHost 127.0.0.1:80>
ServerName monarc.localhost ServerName monarc.localhost
DocumentRoot /path/to/monarc/public DocumentRoot /path/to/monarc/public
SetEnv APPLICATION_ENV "development" SetEnv APPLICATION_ENV "development"
@ -168,7 +179,7 @@ Create configuration file
sudo cp ./config/autoload/local.php.dist ./config/autoload/local.php sudo cp ./config/autoload/local.php.dist ./config/autoload/local.php
Update connection information to local.php and global.php Update connection information to *local.php* and *global.php*.
Configuration files are stored in cache. Configuration files are stored in cache.
If your changes have not been considered, empty cache by deleting file in If your changes have not been considered, empty cache by deleting file in
@ -180,20 +191,19 @@ Install Grunt
sudo apt-get install nodejs sudo apt-get install nodejs
sudo apt-get install npm sudo apt-get install npm
sudo npm install -g grunt-cli sudo npm install -g grunt-cli
Only for Linux systems:
sudo ln -s /usr/bin/nodejs /usr/bin/node sudo ln -s /usr/bin/nodejs /usr/bin/node
Update project Update project
-------------- --------------
Play script (mandatory from the root of the project)(pull and migrations): Play script (mandatory from the root of the project):
/bin/bash ./scripts/update-all.sh /bin/bash ./scripts/update-all.sh
This shell script uses others shell scripts. You may need to change the access This script will retrieve the updates from the last stable release of MONARC.
rights of those scripts.
It uses others shell scripts. You may need to change the access rights of those
scripts.
Create Initial User and Client Create Initial User and Client