简体   繁体   English

Drupal 7:从万神殿到本地环境

[英]Drupal 7: from pantheon to a Local environment

I have a website on pantheon I want to copy this website to local so I created a database and then from the backup of the database and using command line I was able to import the backup to the database created on local also I did a clone of the code by running the command git clone and then I copied the files using sftp on the console I can see some 我在pantheon上有一个网站,我想将此网站复制到本地,所以我创建了一个数据库,然后从数据库的备份中使用命令行,可以将备份导入到在本地创建的数据库中,我也做了一个克隆通过运行命令git clone的代码,然后我在控制台上使用sftp复制了文件,我可以看到一些

mkdir : No such file or directory

but no error 但没有错误

At the end when I try to open the website it Opens with no error but also with no style no images just the content. 最后,当我尝试打开网站时,它没有错误但没有样式地打开,仅图像没有内容。

What did I miss? 我错过了什么?

I think you are missing to copy files from server. 我认为您缺少从服务器复制文件的功能。 Which is in site/default/files . 这在site/default/files If you are unable to download the directory then check permission on server. 如果无法下载目录,请检查服务器上的权限。 By default Drupal stores all images and image styles in sites/default/files or you can change path for public and private file by config>media>file system . 默认情况下,Drupal将所有图像和图像样式存储在sites/default/files或者您可以通过config>media>file system更改公共和私有文件的路径。 If you have all images but they are not showing on front end then just update path on config>media>file system and save. 如果您拥有所有图像,但它们未在前端显示,则只需在config>media>file system上更新路径并保存。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 新鲜的 Pantheon Drupal 安装无法在本地运行 - Fresh Pantheon Drupal Install not working on Local 万神殿Drupal克隆数据库和文件 - Pantheon Drupal Clone Database and Files 万神殿服务器上的 Drupal 登录问题 - Drupal login issue on pantheon server Drupal 本地开发设置/环境 - Drupal Local Development Setup/Environment .htaccess在上传到Pantheon服务器时在drupal 7上不起作用 - .htaccess not working on drupal 7 when uploaded to pantheon server 在本地环境中为drupal 8设置目录权限 - Directory permission setup for drupal 8 in local environment 万神殿上的Drupal sites / default / settings.php问题 - Drupal sites/default/settings.php issue on pantheon Docker 中的Traefik Compose 实现从外部设备(如手机)访问本地(Drupal)网站开发环境 - Traefik in the Docker Compose to enable access into the local (Drupal) website development environment from an external device (e.g. mobile) 从本地迁移到服务器时,内容中的Drupal图像损坏 - Drupal images in content break when migrating from local to server 无法获取 webpack --watch 或开发服务器以使用 Lando 运行本地 Drupal 环境 - Cannot get webpack --watch or dev server to work using Lando to run a local Drupal environment
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM