From b29fd391f1ed7349d8bc0c3d3053b3dc7f7ca32a Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Tue, 25 Feb 2020 14:04:16 +0100 Subject: [PATCH] updated readme --- README.md | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 91ec4c9..b8e18b0 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# figureslibres.cc +# muntadas-protocols -Figureslibres.cc powered by grav in docker environement (nginx, php:7.0-fpm) +muntadas-protocols powered by grav in docker environement (nginx, php:7.3-fpm) ## Install docker ``` @@ -12,19 +12,19 @@ sudo pacman -S docker docker-compose docker-machine this will clone this repos (main docker environement) and the grav source code ``` -git clone --recursive -o figureslibres.io https://figureslibres.io/gogs/bachir/docker-figureslibres.cc-grav.git +git clone --recursive -o figureslibres.io https://figureslibres.io/gogs/bachir/docker-muntadas-protocols.git ``` ## Hosts and reverse proxy add to your /etc/hosts : ``` -127.0.0.1 dev.figureslibres.cc +127.0.0.1 dev.muntadas-protocols.figli.io ``` -configure your apache vhosts to add a reverse proxy that will redirect the dev.materio.com to our container +configure your apache/nginx vhosts to add a reverse proxy that will redirect the dev.materio.com to our container ``` - ServerName dev.figuresmibres.cc + ServerName dev.muntadas-protocols.figli.io ProxyPass / http://127.0.0.1:8882/ ProxyPassReverse / http://127.0.0.1:8882/ ProxyRequests Off @@ -41,26 +41,28 @@ sudo systemctl start docker ### build only before the first run (may take some time) ``` -sudo docker-compose build +make build ``` ### run then each time you want to launch the app ``` -sudo docker-compose up -d +make up ``` ### loging in ``` -sudo docker exec -it grav_figureslibres.cc_php_1 bash +make exec_php ``` ### fixing permissions -from the ```grav_figureslibres.cc_php_1``` run the fixeperms.sh script +run the fixeperms.sh script from the php container ``` -sudo docker exec -it grav_figureslibres.cc_php_1 bash +make exec_php chmod +x fixperms.sh ./fixeperms.sh ``` ## Visualize -You can now visit http://dev.figureslibres.cc or simply http://localhost:8882 on your browser -After the first run +You can now visit http://dev.muntadas-protocols.figli.io or simply http://localhost:8882 on your browser + +## online +https://muntadas-protocols.figli.io