To import your Drupal website by creating a site archive file, you can use one of the following methods:
Importing an existing Drupal site archive through the Cloud Platform user interface
Pre-requisites
Steps
- Sign in to the Cloud Platform user interface.
Select your application and select the Development environment.
If you do not want to overwrite the contents of any of your current applications with an imported application, you can create a new application in your Cloud Platform subscription.
On the Overview page in your development environment, click Install Drupal.
The system displays the Install Distribution page.
- Click Import from URL.
- Enter the URL of the Drush site archive that you want to import.
Click Import to start the import task.
The import task takes several minutes. The Cloud Platform user interface reports on completion of the import task.
To verify that Cloud Platform imported your application, click the URL link on the Overview page.
After Cloud Platform imports your codebase, files, and database, it adds the
include
statement to the application’ssettings.php
file. Therefore, your code can access the correct database. For more information about this file, visit Acquia require line. To start developing your application on Cloud Platform, check out a local copy of the repository by using Git.
Importing an existing Drupal site archive by using Drush
Pre-requisites
Steps
- Confirm that you have enabled SSH access to your Cloud Platform infrastructure.
Copy
mysite.tar.gz
to/mnt/gfs/[site].[env]/import
on your Cloud Platform infrastructure, using the followingscp
command:scp mysite.tar.gz [SITE].[ENV]@[INFRASTRUCTURE]:/mnt/gfs/[SITE].[ENV]/import
where:
[SITE]
is the sitename of your application on Cloud Platform.[ENV]
is the Cloud Platform environment (frequentlyprod
,test
, ordev
).[INFRASTRUCTURE]
is the full DNS name of the infrastructure hosting your website.
To find your
[SITE]
and[INFRASTRUCTURE]
names, sign in to the Cloud Platform user interface and view the Infrastructure page for the environment. For more information on obtaining infrastructure information, visit Managing Cloud Platform infrastructure.- Sign in to your environment on Cloud Platform by using the SSH address displayed on the Infrastructure page of the environment.
In this SSH session, use the ah-site-archive-import command to import your application:
drush @[SITE].[ENV] ah-site-archive-import /mnt/gfs/[SITE].[ENV]/import/mysite.tar.gz
where:
[SITE]
is the same value from step 2.[ENV]
is the environment you’re updating (frequentlyprod
,test
, ordev
).
After you import your site archive, you can import your files and check out a local copy of the application from your Cloud Platform code repository.