Drupal 7
First copy the staging/prod database to your local database. Edit drupal/sites/default/settings.php
with the correct database info.
Then:
# create and edit the settings with your database infos
$ cp drupal/sites/default/default.settings.php drupal/sites/default/settings.php
$ vim drupal/sites/default/settings.php
# pull the production/staging database locally
$ bundle install
$ bundle exec cap staging database:copy:to_local
$ cd drupal
$ drush cc all
$ drush fra
$ npm install
$ gulp
$ gulp build
$ gulp serve
$ gulp deploy
$ bundle install
$ bundle exec cap staging deploy