Migration from drupal to platform.sh
To migrate your existing site into Platform.sh, there are 3 components you need to import: code base, database and files.

Import code base

If your project already uses Git you've to go to your Git project folder and add platform as a remote and push your local branch to your platform remote.

$ cd ~/Sites/platform
$ git remote add platform [PROJECT-ID]@git.[CLUSTER].platform.sh:[PROJECT-ID].git
$ git push platform HEAD:master


Import your database


Create drush alias for your platform.sh, e.g.

$ cd ~/.drush
$ sudo vi platform.aliases.drushrc.php


In your new alias file, you can create aliases for your various Platform.sh projects. For example:

&lt;?php
// Platform environment
$aliases['master'] = array(
  'uri' =&gt; 'master-[project-id].eu.platform.sh',
  'root' =&gt; '/app/public',
  'remote-host' =&gt; 'ssh.eu.platform.sh',
  'remote-user' =&gt; '[project-id]-master',
);
// Platform branch environment
$aliases['BRANCHNAME'] = array(
  'uri' =&gt; 'BRANCHNAME-[project-id].eu.platform.sh',
  'root' =&gt; '/app/public',
  'remote-host' =&gt; 'ssh.eu.platform.sh',
  'remote-user' =&gt; '[project-id]-BRANCHNAME',
);
// Platform local environment
$aliases['local'] = array(
  'site' =&gt; 'platform',
  'env' =&gt; 'local',
  'uri' =&gt; 'platform',
  'root' =&gt; '~/Sites/platform',
);

Backup your database.

$ drush @platform.local sql-dump > backup_database.sql
Export your local database and then import it into your remote Platform environment.

$ drush @platform.local sql-dump &gt; local_database.sql
$ drush @platform.master sql-cli &lt; local_database.sql

When the process completes, you can visit the URL of your development environment and test that the database has been properly imported.


Import your files


Use drush alias to import your existing local files:

$ drush rsync @platform.local:%files @platform.master:%files





The above steps assume that you're using drush and Git scm (which is the easiest way).

More details information can be found at: Migrate an existing site to Platform.sh