Easy to sync your site from local to remote through drupal 8

本文提供了一步式指南,详细说明如何使用Drupal 8将本地网站无缝部署到远程服务器,包括安装、文件迁移、数据库操作等关键步骤。确保在不复制敏感内容的情况下,高效地完成网站的跨平台同步。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Just like the feature in drupal 7. In drupal8, the feature module  have already intergreated inside. so you can easy to sync your site from to local to remote.  please do the step as below and enjoy it .

 

The process is the same if you mirror your site from local to server or the other direction. I will describe the deployment from local to remote server to simplify the explanation.

  1. Install your site on your local Wamp, Xamp, Mamp or whatever webserver you are using.
  2. Move all files inside your drupal directory to the server. You can do this with Version control (Git, SVN etc) or by using FTP
  3. Do not copy anything inside sites/default except of default.settings.php. So sites/default/files is not copied, neither is settings.php
  4. Create a fresh database on your remote server and do a fresh install of Drupal.
  5. Export the configuration via /admin/config/development/configuration/full/export

    Exporting configuration

  6. Import the config.tar.gz file you get from that via /admin/config/development/configuration/full/import
  7. Export the database from your local web server using PHPmyadmin or another tool. The preferred Drupal module for that is https://drupal.org/project/backup_migrateonce it will be ready for Drupal 8.
  8. Import the database using the same tool into the Drupal 8 site on your remote server
  9. Voila! Everything should be synchronized. As long as you are not synchronizing content like nodes or users, you can also just use the CMI config.tar.gz file to synchronize. If in doubt or you are not a very versed Drupal user, always synchronize the database also.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值