index.htmlGo to the directory for the new local code repository for docroot, and then check out the current default application code repository contents to your computer.
cd [LOCAL_REPOSITORY_DIRECTORY]
git clone [REMOTE_REPOSITORY_URL]
cd [SITENAME]
git checkout masterwhere:
[LOCAL_REPOSITORY_DIRECTORY] is the directory for the new local code repository for your application’s docroot.[REMOTE_REPOSITORY_URL] is the URL of the Cloud Platform code repository. For help finding the Git URL of your application, see Basic Git commands.[SITENAME] is the name of your site on Cloud Platform. For more information about your sitename, see the Sitename definition page.In the new local code repository for the docroot directory, remove the default website and send the changes to Cloud Platform.
git rm -r docroot
git commit -m "Remove default docroot."
git push origin masterFrom the new local code repository directory, make a copy of your application’s most current docroot directory using the following command:
cp -R [CURRENT_DOCROOT] docrootwhere [CURRENT_DOCROOT] is the complete path to the local location for the current docroot for your Drupal application.
After you have imported your code, you should update your Drupal settings.php file to include required settings for Cloud Platform:
a. Go to the Cloud Platform Databases page.
require statement at the end of the settings.php file in your /sites directory.The database require statement causes your application to use a unique database for each Cloud Platform environment, which allows you to use the same settings.php file in each of your Cloud Platform environments.
Commit the prepared Drupal docroot (without any /files directories) into your Cloud Platform repository:
git add docroot
git commit -m "Import my docroot."
git push origin masterAfter your codebase is ready, import your database and configure its website connection.
If this content did not answer your questions, try searching or contacting our support team for further assistance.
docrootindex.htmlGo to the directory for the new local code repository for docroot, and then check out the current default application code repository contents to your computer.
cd [LOCAL_REPOSITORY_DIRECTORY]
git clone [REMOTE_REPOSITORY_URL]
cd [SITENAME]
git checkout masterwhere:
[LOCAL_REPOSITORY_DIRECTORY] is the directory for the new local code repository for your application’s docroot.[REMOTE_REPOSITORY_URL] is the URL of the Cloud Platform code repository. For help finding the Git URL of your application, see Basic Git commands.[SITENAME] is the name of your site on Cloud Platform. For more information about your sitename, see the Sitename definition page.In the new local code repository for the docroot directory, remove the default website and send the changes to Cloud Platform.
git rm -r docroot
git commit -m "Remove default docroot."
git push origin masterFrom the new local code repository directory, make a copy of your application’s most current docroot directory using the following command:
cp -R [CURRENT_DOCROOT] docrootwhere [CURRENT_DOCROOT] is the complete path to the local location for the current docroot for your Drupal application.
After you have imported your code, you should update your Drupal settings.php file to include required settings for Cloud Platform:
a. Go to the Cloud Platform Databases page.
require statement at the end of the settings.php file in your /sites directory.The database require statement causes your application to use a unique database for each Cloud Platform environment, which allows you to use the same settings.php file in each of your Cloud Platform environments.
Commit the prepared Drupal docroot (without any /files directories) into your Cloud Platform repository:
git add docroot
git commit -m "Import my docroot."
git push origin masterAfter your codebase is ready, import your database and configure its website connection.
If this content did not answer your questions, try searching or contacting our support team for further assistance.