- Create a Drupal 7 site on Pantheon
- Create Pusher apps. One for local, and 3 for pantheon (Dev, Test, Live)
- On Pantheon dashboard switch connection mode to "Git"
- Clone Pantheon site locally
- In the Pantheon directory,
cd sites/default && cp default.settings.php settings.php
- Add the following code, to the end of
settings.php
- replace Pusher's app ID,key, secret and cluster
# Pusher integration.
if ($_ENV['PANTHEON_ENVIRONMENT'] == 'dev') {
$conf['hedley_pusher_app_id'] = '<your-app-id>';
$conf['hedley_pusher_app_key'] = '<your-app-key>';
$conf['hedley_pusher_app_secret'] = '<your-app-secret>';
$conf['hedley_pusher_app_cluster'] = '<your-app-cluster>';
}
elseif ($_ENV['PANTHEON_ENVIRONMENT'] == 'test') {
$conf['hedley_pusher_app_id'] = '<your-app-id>';
$conf['hedley_pusher_app_key'] = '<your-app-key>';
$conf['hedley_pusher_app_secret'] = '<your-app-secret>';
$conf['hedley_pusher_app_cluster'] = '<your-app-cluster>';
}
elseif ($_ENV['PANTHEON_ENVIRONMENT'] == 'live') {
$conf['hedley_pusher_app_id'] = '<your-app-id>';
$conf['hedley_pusher_app_key'] = '<your-app-key>';
$conf['hedley_pusher_app_secret'] = '<your-app-secret>';
$conf['hedley_pusher_app_cluster'] = '<your-app-cluster>';
}
-
From Pantheon dashboard, download the
Drush aliases
and copy the newly created Dev to~/.drush/pantheon.aliases.drushrc.php
. Verify withdrush sa
the alias exists. -
Back in the
make
directory,cd server && cp default.config.sh config.sh && cp pantheon-install.sh.example pantheon-install.sh
-
Change the settings in
config.sh
for your DB andBASE_DOMAIN_URL
-
Add the local pusher credentials under
post_install
andpost_reset
-
In
pantheon-install.sh
Change theMAKE_DIR
andPANTHEON_DIR
, andPANTHEON_ALIAS
-
After installation of the make dir under
server
(install./install -dly
or re-install./scripts/reset -dly
) -
Install on Pantheon
./pantheon-install.sh