On your Drupal VM, rebuild the caches in the web directory with drush cr.Copy what was in your previous install into modules/custom and themes/custom.Remember to use preferably the environment that have XDebug disabled. Simply run for each composer require drupal/. Remember to exclude composer_manager if you were using it. Then go back to your local environment on your project root (so, on the parent of web) and install your contributed dependencies that will now live by default in modules/contrib and themes/contrib, based on the Composer template. The real benefit with drush is that you will only have a list of enabled modules, so it is the perfect moment for cleaning up. You can also use drush for that drush pm-list -status=enabled -pipe -no-core. Based on your production / staging environment or your git master, get a list of the contributed modules and themes that are installed.Replace your Phing created db by your db dump.Remove the sql dump after downloading it, if it was done with drush in the files directory.Also, you could consider using drush alias for that. From your production or staging environment, get a lightweight db backup, without the cache tables, by using drush ( cd into sites/default/files then drush sql-dump > dump.sql) or faster with backup_migrate.This is used for doing functional tests in Behat and PHPUnit.ĭrupal.base_url = Replicate your previous environment Here, the db name will inherit the project.name (see the. The minimal config should be covered by the following values. Serveralias: "documentroot: "/var/www/myproject/web/" vendor/bin/phing installĮxample values of vagrant_synced_folders and apache_vhosts vagrant_synced_folders: ![]() Go to your Drupal VM vhost: vagrant ssh then in the VM cd into your vhost root ( not web, example: /var/www/myproject).Create the at the vhost root ( myproject).Go to your Drupal VM install directory (the one where you cloned the Drupal VM repo) then vagrant provision and vagrant reload (if you have several sites to update, repeat what's above first, for all the sites). ![]() Note that your apache_vhost will use " web" instead of " public_html" or " docroot" or anything else. If your db is already defined in the mysql_databases section, remove the db entry and drop the db on your Drupal VM.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |