A bare bones front-end for knockout designed for maximum compatibility with "obsolete" browsers
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

64 linhas
1.3KB

  1. <?php
  2. namespace Deployer;
  3. require 'recipe/laravel.php';
  4. // Project name
  5. set('application', 'knockout-lite');
  6. // Project repository
  7. set('repository', 'git@git.mos6581.com:Knockout/Knockout-Lite.git');
  8. // [Optional] Allocate tty for git clone. Default value is false.
  9. set('git_tty', true);
  10. // Shared files/dirs between deploys
  11. add('shared_files', []);
  12. add('shared_dirs', []);
  13. // Writable dirs by web server
  14. add('writable_dirs', []);
  15. set('allow_anonymous_stats', false);
  16. // Hosts
  17. host('lite.knockout.chat')
  18. ->user('knockout')
  19. ->stage('production')
  20. ->set('deploy_path', '/srv/www/{{application}}/production');
  21. host('staging.lite.knockout.chat')
  22. ->user('knockout')
  23. ->stage('staging')
  24. ->set('deploy_path', '/srv/www/{{application}}/staging');
  25. // Tasks
  26. task('build', function() {
  27. run('cd {{release_path}} && build');
  28. });
  29. task('artisan:storage:link', function() {
  30. // override
  31. });
  32. task('artisan:view:cache', function() {
  33. // override
  34. });
  35. task('artisan:config:cache', function() {
  36. // override
  37. });
  38. task('artisan:optimize', function() {
  39. // override
  40. });
  41. task('artisan:migrate', function() {
  42. // override
  43. });
  44. // [Optional] if deploy fails automatically unlock.
  45. after('deploy:failed', 'deploy:unlock');
  46. // Migrate database before symlink new release.
  47. before('deploy:symlink', 'artisan:migrate');