readme and settings files
This commit is contained in:
@@ -24,32 +24,32 @@ git clone --recursive -o figli https://figureslibres.io/gogs/bachir/docker-rorsc
|
||||
```
|
||||
|
||||
submodules :
|
||||
- https://figureslibres.io/gogs/bachir/rorschach-d9
|
||||
- https://figureslibres.io/gogs/bachir/drupal-rorschach
|
||||
|
||||
### setup /sites/default/settings.php
|
||||
|
||||
```
|
||||
cp -r ressources/d9/settings.php src_d9/web/sites/default/
|
||||
cp -r ressources/d9/settings.local.php src_d9/web/sites/default/
|
||||
cp -r ressources/drupal/settings.php src/web/sites/default/
|
||||
cp -r ressources/drupal/settings.local.php src/web/sites/default/
|
||||
cp -r ressources/drupal/services.yml src/web/sites/default/
|
||||
```
|
||||
|
||||
### get the sites/default/files folder
|
||||
rsync the files from you know where (if you don't, you don't) to src_d7/sites/default/files/ and src_d9/web/sites/default/files/
|
||||
rsync the files from you know where (if you don't, you don't) to src/sites/default/files/
|
||||
|
||||
### xdebug
|
||||
copy ```ressources/xdebug.ini.exemple``` to ```ressources/xdebug.ini``` and edit the ```xdebug.remote_host``` ip to your host locale ip (e.g. : 192.168.0.23) (or once the docker is started to the host ip from the container point of vu e.g. 172.21.0.1)
|
||||
|
||||
## Mysql
|
||||
Copy your-sql-dump.sql files into ```./ressources/rorschach_d7.sql``` and ```./ressources/rorschach_d9.sql```
|
||||
Copy your-sql-dump.sql files into ```./ressources/rorschach.sql```
|
||||
They will be automaticly imported into the mysql containers dbs (only) on the first docker-compose up
|
||||
|
||||
## Hosts and reverse proxy
|
||||
|
||||
add to your /etc/hosts :
|
||||
```
|
||||
127.0.0.1 dev.d7.rorschach.archi.fr
|
||||
127.0.0.1 dev.d9.rorschach.archi.fr
|
||||
127.0.0.1 dev.phpmyadmin.rorschach.archi.fr
|
||||
127.0.0.1 dev.rorschach.fr
|
||||
127.0.0.1 dev.phpmyadmin.rorschach.fr
|
||||
```
|
||||
configure your vhosts to add a reverse proxy that will redirect the dev.materio.com to our container
|
||||
|
||||
@@ -62,7 +62,7 @@ sudo mkdir /etc/var/log/rorschach
|
||||
```nginx
|
||||
server {
|
||||
listen 80;
|
||||
server_name dev.d7.rorschach.archi.fr dev.d9.rorschach.archi.fr;
|
||||
server_name dev.rorschach.fr;
|
||||
|
||||
access_log off;
|
||||
error_log /var/log/nginx/rorschach/error.log error;
|
||||
@@ -82,7 +82,7 @@ server {
|
||||
}
|
||||
server {
|
||||
listen 80;
|
||||
server_name dev.phpmyadmin.rorschach.archi.fr;
|
||||
server_name dev.phpmyadmin.rorschach.fr;
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:8981;
|
||||
@@ -100,7 +100,7 @@ server {
|
||||
### apache
|
||||
```apache
|
||||
<Virtualhost *:80>
|
||||
ServerName dev.d7.rorschach.archi.fr
|
||||
ServerName dev.rorschach.fr
|
||||
ProxyPass / http://127.0.0.1:8980/
|
||||
ProxyPassReverse / http://127.0.0.1:8980/
|
||||
ProxyRequests Off
|
||||
@@ -110,17 +110,7 @@ server {
|
||||
proxy_busy_buffers_size 256k;
|
||||
</Virtualhost>
|
||||
<Virtualhost *:80>
|
||||
ServerName dev.d9.rorschach.archi.fr
|
||||
ProxyPass / http://127.0.0.1:8980/
|
||||
ProxyPassReverse / http://127.0.0.1:8980/
|
||||
ProxyRequests Off
|
||||
ProxyPreserveHost On
|
||||
proxy_buffer_size 128k;
|
||||
proxy_buffers 4 256k;
|
||||
proxy_busy_buffers_size 256k;
|
||||
</Virtualhost>
|
||||
<Virtualhost *:80>
|
||||
ServerName dev.phpmyadmin.rorschach.archi.fr
|
||||
ServerName dev.phpmyadmin.rorschach.fr
|
||||
ProxyPass / http://127.0.0.1:8981/
|
||||
ProxyPassReverse / http://127.0.0.1:8981/
|
||||
ProxyRequests Off
|
||||
|
||||
Reference in New Issue
Block a user