|
@@ -254,8 +254,10 @@ git add .
|
|
|
|
|
|
```
|
|
|
remove file D8-starterit-profile from the git index in order to add it as a submodule.
|
|
|
+
|
|
|
```git reset web/profiles/d8-starterkit-profile```
|
|
|
|
|
|
+
|
|
|
add submodule
|
|
|
```
|
|
|
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"
|
|
|
```
|
|
|
Create new repository on gogs, for durpal
|
|
|
+
|
|
|
then
|
|
|
```
|
|
|
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)
|
|
|
|
|
|
+
|
|
|
in settings.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.
|
|
|
|
|
|
+
|
|
|
create folder config/sync at the root of your site (src)
|
|
|
|
|
|
## export config
|
|
@@ -313,7 +318,13 @@ create folder config/sync at the root of your site (src)
|
|
|
```drush cst``` to see config status
|
|
|
```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
|
|
|
```drush en module_name```
|