PageRenderTime 81ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

/config/deploy.rb

https://bitbucket.org/zachmakesu/blgf-copy
Ruby | 81 lines | 44 code | 15 blank | 22 comment | 0 complexity | e0e925040cd119ed0376a42a02746b51 MD5 | raw file
  1. # config valid only for current version of Capistrano
  2. lock '3.5.0'
  3. require 'capistrano-db-tasks'
  4. set :application, 'blgf'
  5. set :repo_url, 'git@bitbucket.org:gorated/blgf.git'
  6. # Default branch is :master
  7. # ask :branch, `git rev-parse --abbrev-ref HEAD`.chomp
  8. # Default deploy_to directory is /var/www/my_app_name
  9. # set :deploy_to, '/var/www/my_app_name'
  10. # Default value for :scm is :git
  11. # set :scm, :git
  12. # Default value for :format is :airbrussh.
  13. # set :format, :airbrussh
  14. # You can configure the Airbrussh format using :format_options.
  15. # These are the defaults.
  16. # set :format_options, command_output: true, log_file: 'log/capistrano.log', color: :auto, truncate: :auto
  17. # Default value for :pty is false
  18. # set :pty, true
  19. # Default value for :linked_files is []
  20. # set :linked_files, fetch(:linked_files, []).push('config/database.yml', 'config/secrets.yml')
  21. # Default value for linked_dirs is []
  22. # set :linked_dirs, fetch(:linked_dirs, []).push('log', 'tmp/pids', 'tmp/cache', 'tmp/sockets', 'public/system')
  23. # Default value for default_env is {}
  24. # set :default_env, { path: "/opt/ruby/bin:$PATH" }
  25. # Default value for keep_releases is 5
  26. # set :keep_releases, 5
  27. fetch(:mb_recipes) << "sidekiq"
  28. fetch(:mb_aptitude_packages).merge!(
  29. "redis-server@ppa:rwky/redis" => :redis
  30. )
  31. set :mb_recipes, %w(
  32. user
  33. aptitude
  34. logrotate
  35. migrate
  36. seed
  37. nginx
  38. postgresql
  39. rake
  40. rbenv
  41. ufw
  42. unicorn
  43. version
  44. )
  45. set :linked_files, -> {
  46. [
  47. fetch(:mb_dotenv_filename)] +
  48. %w(
  49. config/database.yml
  50. config/unicorn.rb
  51. )
  52. }
  53. set :mb_dotenv_keys, %w(
  54. rails_secret_key_base
  55. sidekiq_web_username
  56. sidekiq_web_password
  57. hmac_secret1
  58. hmac_secret2
  59. gmail_username
  60. gmail_password
  61. )
  62. set :rbenv_ruby, '2.3.1'
  63. set :db_local_clean, true
  64. set :db_remote_clean, true
  65. set :locals_rails_env, "production"
  66. set :assets_dir, "public/assets"