Hi Guys,

I am new to Drupal platform, I just want to know how to export code base of project.

I want to configure project that already there in production to my local machine here I am not having any details of server like where the code has been deployed and etc, just I am having admin credentials of the site, we are able to export database but not sure on how to get code base of already existed project.

Thanks!

Comments

Kristi Wachter’s picture

The answer to your question depends on how your production server is set up, but there's a good chance that you have a public_html directory that has all your Drupal files in it.

You could copy that entire directory to your local machine, and it would have all your code.

Most of the core Drupal files will be in various directories within the public_html directory: for example, the includes, modules, and themes directories.

Your own custom code - the contributed modules you're using and any custom themes and modules you've added - will probably be in the sites directory.

You can find some information about typical Drupal directory structures on the Directory precedence and multi-site considerations page in the Installation Guide.

˚ ˚ ˚ ˚ ˚
Kristi Wachter
Drupal consultant, evangelist, and enthusiast