readme + new commit drupal
This commit is contained in:
@@ -164,10 +164,10 @@ Be aware that a first up, since the db is empty, it will be populated with your
|
|||||||
## Drupal Composer install
|
## Drupal Composer install
|
||||||
Only at first up, finish to install drupal 9 composer dependencies
|
Only at first up, finish to install drupal 9 composer dependencies
|
||||||
```sh
|
```sh
|
||||||
make exec_php_d9
|
make exec_php
|
||||||
composer install
|
composer install
|
||||||
# or juste
|
# or juste
|
||||||
make d9_composer_install
|
make composer_install
|
||||||
```
|
```
|
||||||
|
|
||||||
## Visualize
|
## Visualize
|
||||||
@@ -178,9 +178,7 @@ After the first run
|
|||||||
### drush
|
### drush
|
||||||
you can access to drush by loging into the php container
|
you can access to drush by loging into the php container
|
||||||
```sh
|
```sh
|
||||||
make exec_php_d7
|
make exec_php
|
||||||
# or
|
|
||||||
make exec_php_d9
|
|
||||||
```
|
```
|
||||||
once inside the php container in /var/www/html you can use drush as usual
|
once inside the php container in /var/www/html you can use drush as usual
|
||||||
|
|
||||||
@@ -196,35 +194,25 @@ git submodule update --checkout src_d7/
|
|||||||
# or only d9
|
# or only d9
|
||||||
git submodule update --checkout src_d9/
|
git submodule update --checkout src_d9/
|
||||||
# if you updated d9 code then run
|
# if you updated d9 code then run
|
||||||
make d9_maj_config
|
make maj_config
|
||||||
```
|
```
|
||||||
|
|
||||||
## Updating manualy the mysql db
|
## Updating manualy the mysql db
|
||||||
copy your db backup into the mysql container
|
copy your db backup into the mysql container
|
||||||
```sh
|
```sh
|
||||||
docker cp your-db-file.sql rorschach_mysql_d7_1:/root/
|
docker cp your-db-file.sql rorschach-mysql-1:/root/
|
||||||
# or
|
|
||||||
docker cp your-db-file.sql rorschach_mysql_d9_1:/root/
|
|
||||||
```
|
```
|
||||||
log into mysql container
|
log into mysql container
|
||||||
```sh
|
```sh
|
||||||
make exec_mysql_d7
|
make exec_mysql
|
||||||
# or
|
|
||||||
make exec_mysql_d9
|
|
||||||
```
|
```
|
||||||
once inside the mysql container you can use mysql command to drop then create and load the db with your file
|
once inside the mysql container you can use mysql command to drop then create and load the db with your file
|
||||||
```
|
```
|
||||||
mysql -uroot -prorschach
|
mysql -uroot -prorschach
|
||||||
> drop database rorschach_d7;
|
> drop database rorschach;
|
||||||
> create database rorschach_d7;
|
> create database rorschach;
|
||||||
> exit;
|
> exit;
|
||||||
mysql -uroot -prorschach rorschach_d7 < your-db-file.sql
|
mysql -uroot -prorschach rorschach < your-db-file-name.sql
|
||||||
# or
|
|
||||||
mysql -uroot -prorschach
|
|
||||||
> drop database rorschach_d9;
|
|
||||||
> create database rorschach_d9;
|
|
||||||
> exit;
|
|
||||||
mysql -uroot -prorschach rorschach_d9 < your-db-file.sql
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+1
-1
Submodule src updated: c1c8dead42...14ec886b91
Reference in New Issue
Block a user