readme.md corrections

This commit is contained in:
2023-05-18 21:33:17 +02:00
parent 0b1a82179c
commit 178adb7c57
+11
View File
@@ -254,8 +254,10 @@ git add .
``` ```
remove file D8-starterit-profile from the git index in order to add it as a submodule. remove file D8-starterit-profile from the git index in order to add it as a submodule.
```git reset web/profiles/d8-starterkit-profile``` ```git reset web/profiles/d8-starterkit-profile```
add submodule add submodule
``` ```
git submodule add https://figureslibres.io/gogs/bachir/d8-starterkit-profile.git web/profiles/d8-starterkit-profile git submodule add https://figureslibres.io/gogs/bachir/d8-starterkit-profile.git web/profiles/d8-starterkit-profile
@@ -264,6 +266,7 @@ git submodule add https://figureslibres.io/gogs/bachir/d8-starterkit-profile.git
git commit -m "first drupal instal working" git commit -m "first drupal instal working"
``` ```
Create new repository on gogs, for durpal Create new repository on gogs, for durpal
then then
``` ```
git remote add origin https://figureslibres.io/gogs/ouidade/drupal-training.git git remote add origin https://figureslibres.io/gogs/ouidade/drupal-training.git
@@ -293,6 +296,7 @@ drush cr
create file services.yml in src/web/sites/default (can copy from previous site) create file services.yml in src/web/sites/default (can copy from previous site)
in settings.php in settings.php
``` ```
if (file_exists($app_root . '/' . $site_path . '/settings.local.php')) { if (file_exists($app_root . '/' . $site_path . '/settings.local.php')) {
@@ -306,6 +310,7 @@ $settings['config_sync_directory'] = '../config/sync';
so the config databse is stored in a folder config/sync not in web, and so not shared online. so the config databse is stored in a folder config/sync not in web, and so not shared online.
create folder config/sync at the root of your site (src) create folder config/sync at the root of your site (src)
## export config ## export config
@@ -314,6 +319,12 @@ create folder config/sync at the root of your site (src)
```drush cex -y``` to export all that's in database in config/sync ```drush cex -y``` to export all that's in database in config/sync
git config git config
```
git add .
git commit
git push
```
to add enable new module already in drupal core to add enable new module already in drupal core
```drush en module_name``` ```drush en module_name```