Question about changing the subdirectory web

In docs I read about installing with “composer create-project drupal-composer/drupal-project:8.x-dev my_site_name_dir –stability dev –no-interaction –no-install”, changing the subdirectory web into, let’s say, home in composer.json and then run “composer install”.

It seems to work fine and I did not meet any problems so far, but when I run “grep -r ‘web/’ *” on my webserver, I see several files with web/ in some lines.

I am just wondering if this is correct or not. Can I meet problems in the future because of the hard coded (?) references to the folder web that does not exist in my installation?

And is composer.json the only file that needs to be changed before using composer install? Because I see also a few references to the default folder ‘web’ in .gitignore.


private_html/.travis.yml:  # Skip core/tests/Drupal/Tests/ComposerIntegrationTest.php because web/ has no composer.json
private_html/home/core/assets/vendor/jquery/jquery.js:// https://web.archive.org/web/20100324014747/http://blindsignals.com/index…
private_html/home/core/assets/vendor/jquery/jquery.js:                          // https://web.archive.org/web/20141116233347/http://fluidproject.org/blog/…
private_html/vendor/drush/drush/tests/UpdateDBTest.php:        $this->pathPostUpdate = $this->getSut() . ‘/web/modules/unish/devel/devel.post_update.php’;
private_html/vendor/drush/drush/tests/resources/codebase/composer.json:      “web/core”: [“type:drupal-core”],
private_html/vendor/drush/drush/tests/resources/codebase/composer.json:      “web/libraries/{$name}”: [“type:drupal-library”],
private_html/vendor/drush/drush/tests/resources/codebase/composer.json:      “web/modules/unish/{$name}”: [“drupal/devel”],
private_html/vendor/drush/drush/tests/resources/codebase/composer.json:      “web/themes/unish/{$name}”: [“drupal/empty_theme”],
private_html/vendor/drush/drush/tests/resources/codebase/composer.json:      “web/modules/contrib/{$name}”: [“type:drupal-module”],
private_html/vendor/drush/drush/tests/resources/codebase/composer.json:      “web/profiles/contrib/{$name}”: [“type:drupal-profile”],
private_html/vendor/drush/drush/tests/resources/codebase/composer.json:      “web/themes/contrib/{$name}”: [“type:drupal-theme”],
private_html/vendor/drush/drush/tests/resources/codebase/composer-highest.json:      “web/core”: [“type:drupal-core”],
private_html/vendor/drush/drush/tests/resources/codebase/composer-highest.json:      “web/libraries/{$name}”: [“type:drupal-library”],
private_html/vendor/drush/drush/tests/resources/codebase/composer-highest.json:      “web/modules/unish/{$name}”: [“drupal/devel”],
private_html/vendor/drush/drush/tests/resources/codebase/composer-highest.json:      “web/themes/unish/{$name}”: [“drupal/empty_theme”],
private_html/vendor/drush/drush/tests/resources/codebase/composer-highest.json:      “web/modules/contrib/{$name}”: [“type:drupal-module”],
private_html/vendor/drush/drush/tests/resources/codebase/composer-highest.json:      “web/profiles/contrib/{$name}”: [“type:drupal-profile”],
private_html/vendor/drush/drush/tests/resources/codebase/composer-highest.json:      “web/themes/contrib/{$name}”: [“type:drupal-theme”],
private_html/vendor/grasmash/yaml-expander/.gitignore:/web/bundles/
private_html/vendor/grasmash/yaml-expander/.gitignore:/web/uploads/
private_html/vendor/grasmash/yaml-expander/.gitignore:/web/assets/vendor/
private_html/vendor/grasmash/expander/.gitignore:/web/bundles/
private_html/vendor/grasmash/expander/.gitignore:/web/uploads/
private_html/vendor/grasmash/expander/.gitignore:/web/assets/vendor/
private_html/vendor/consolidation/robo/README.md:            ‘web/assets/tmp_uploads’,
private_html/vendor/consolidation/robo/src/Task/File/Concat.php: *      ‘web/assets/screen.css’,
private_html/vendor/consolidation/robo/src/Task/File/Concat.php: *      ‘web/assets/print.css’,
private_html/vendor/consolidation/robo/src/Task/File/Concat.php: *      ‘web/assets/theme.css’
private_html/vendor/consolidation/robo/src/Task/File/Concat.php: *  ->to(‘web/assets/style.css’)
private_html/vendor/consolidation/robo/src/Task/Assets/Minify.php: * $this->taskMinify( ‘web/assets/theme.css’ )
private_html/vendor/composer/installers/src/Composer/Installers/EzPlatformInstaller.php:        ‘meta-assets’ => ‘web/assets/ezplatform/’,
private_html/vendor/composer/installers/src/Composer/Installers/EzPlatformInstaller.php:        ‘assets’ => ‘web/assets/ezplatform/{$name}/’,
private_html/vendor/composer/installers/tests/Composer/Installers/Test/InstallerTest.php:            array(‘ezplatform-assets’, ‘web/assets/ezplatform/ezplatform_comp/’, ‘author/ezplatform_comp’),
private_html/vendor/composer/installers/tests/Composer/Installers/Test/InstallerTest.php:            array(‘ezplatform-meta-assets’, ‘web/assets/ezplatform/’, ‘author/ezplatform_comp’),
private_html/vendor/symfony/http-kernel/Tests/Debug/FileLinkFormatterTest.php:        $request->server->set(‘SCRIPT_FILENAME’, ‘/web/app.php’);
private_html/vendor/symfony/filesystem/Filesystem.php:        // Determine how deep the start path is relative to the common path (ie, “web/bundles” = 2 levels)
private_html/vendor/symfony/http-foundation/Tests/RequestTest.php:        // assume rewrite rule: (.*) –> app/app.php; app/ is a symlink to a symfony web/ directory
private_html/vendor/symfony/http-foundation/Request.php:     *  * http://localhost/web/index.php     returns ‘/web’
private_html/vendor/webflo/drupal-finder/tests/Drupal8FinderTest.php:                        ‘web/core’ => [
private_html/vendor/webflo/drupal-finder/tests/Drupal8FinderTest.php:                        ‘web/core’ => [
private_html/vendor/webflo/drupal-finder/tests/Drupal8FinderTest.php:        $this->assertTrue($this->finder->locateRoot($root->url() . ‘/web/misc’));
private_html/vendor/webflo/drupal-finder/tests/Drupal7FinderTest.php:                        ‘web/’ => [
private_html/vendor/webflo/drupal-finder/tests/Drupal7FinderTest.php:        $module_link = $root . ‘/web/sites/all/modules/foo’;
private_html/vendor/webflo/drupal-finder/tests/Drupal7FinderTest.php:        $this->assertTrue($this->finder->locateRoot($root->url() . ‘/web/misc’));
private_html/vendor/jcalderonzumba/gastonjs/docs/api/commands/javascript/add_extension.md:        “/www/web/script_extensions/extension.js”
private_html/vendor/jcalderonzumba/gastonjs/tests/unit/BrowserScriptTest.php:    $viewJS = sprintf(“%s/Server/www/web/test/script_extensions/extension.js”, __DIR__);
private_html/vendor/jcalderonzumba/gastonjs/tests/unit/BrowserFileTest.php:    $fileLocation = sprintf(“%s/Server/www/web/test/standard_form/image_for_test.png”, __DIR__);
private_html/vendor/jcalderonzumba/gastonjs/tests/unit/bootstrap.php:LocalWebServer::getInstance(“-t www/web/ www/web/index.php”);
private_html/vendor/jcalderonzumba/gastonjs/tests/unit/BrowserPageTest.php:    $htmlFile = sprintf(“%s/Server/www/web/static/basic.html”, realpath(__DIR__));
private_html/vendor/jcalderonzumba/gastonjs/tests/unit/BrowserPageTest.php:    $htmlFile = sprintf(“%s/Server/www/web/static/basic.html”, realpath(__DIR__));


Drupal version: 


Source: https://www.drupal.org/taxonomy/term/1/feed