Guest User

Untitled

a guest
May 27th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. <?php
  2. /**
  3. * This file goes in ~/.drush/
  4. * Rename to GROUPNAME.aliases.drushrc.php
  5. *
  6. * Examples (run from any path on your local environment):
  7. *
  8. * drush @example.dev status
  9. * drush sql-sync @example.stage @example.dev
  10. *
  11. */
  12.  
  13. $aliases['example.local'] = array (
  14. 'root' => '/path/to/local/codebase',
  15. 'uri' => 'example.local'
  16. );
  17.  
  18. $aliases['example.stage'] = array(
  19. 'uri' => 'stage.example.com',
  20. 'root' => '/var/www/public_html',
  21. 'db-url' => 'mysql://user:pass@localhost:3306/dbname',
  22. 'remote-host' => 'stage.example.com',
  23. 'remote-user' => 'user',
  24. 'ssh-options' => '-p 12345',
  25. 'path-aliases' => array(
  26. '%drush' => '/usr/bin',
  27. '%drush-script' => '/usr/bin/drush',
  28. '%dump' => '/var/www/sql_dump.stage.sql',
  29. '%files' => 'sites/stage.example.com/files',
  30. ),
  31. );
  32.  
  33. $aliases['example.dev'] = array(
  34. 'uri' => 'dev.example.com',
  35. 'root' => '/var/www/public_html',
  36. 'db-url' => 'mysql://user:pass@localhost:3306/dbname',
  37. 'remote-host' => 'stage.example.com',
  38. 'remote-user' => 'user',
  39. 'ssh-options' => '-p 12345',
  40. 'path-aliases' => array(
  41. '%drush' => '/usr/bin',
  42. '%drush-script' => '/usr/bin/drush',
  43. '%dump' => '/var/www/sql_dump.dev.sql',
  44. '%files' => 'sites/dev.example.com/files',
  45. ),
  46. );
  47.  
  48. ?>
Add Comment
Please, Sign In to add comment