PageRenderTime 47ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

/config/deploy.rb

https://bitbucket.org/renekluehe/zfm
Ruby | 58 lines | 12 code | 18 blank | 28 comment | 2 complexity | a5a30b666d4cee23dbc3bd3a35ff1eab MD5 | raw file
  1. # config valid for current version and patch releases of Capistrano
  2. lock "~> 3.10.1"
  3. set :rvm_ruby_version, '2.4.1'
  4. set :application, "zfm"
  5. set :repo_url, "git@bitbucket.org:renekluehe/zfm.git"
  6. set :ssh_options, {
  7. forward_agent: true
  8. }
  9. # files we want symlinking to specific entries in shared.
  10. set :linked_files, %w{config/database.yml config/secrets.yml.enc config/secrets.yml.key}
  11. # dirs we want symlinking to shared
  12. set :linked_dirs, %w{log tmp/pids tmp/cache tmp/sockets vendor/bundle public/system}
  13. # prevent bundler from overwriting the version controlled binstubs
  14. set :bundle_binstubs, nil
  15. # restart passenger by touching restart.txt
  16. set :passenger_restart_with_touch, true
  17. # Default branch is :master
  18. # ask :branch, `git rev-parse --abbrev-ref HEAD`.chomp
  19. set :branch, ENV["REVISION"] || ENV["BRANCH_NAME"] || "master"
  20. # Default deploy_to directory is /var/www/my_app_name
  21. # set :deploy_to, "/var/www/my_app_name"
  22. # Default value for :format is :airbrussh.
  23. # set :format, :airbrussh
  24. # You can configure the Airbrussh format using :format_options.
  25. # These are the defaults.
  26. # set :format_options, command_output: true, log_file: "log/capistrano.log", color: :auto, truncate: :auto
  27. # Default value for :pty is false
  28. # set :pty, true
  29. # Default value for :linked_files is []
  30. # append :linked_files, "config/database.yml", "config/secrets.yml"
  31. # Default value for linked_dirs is []
  32. # append :linked_dirs, "log", "tmp/pids", "tmp/cache", "tmp/sockets", "public/system"
  33. # Default value for default_env is {}
  34. # set :default_env, { path: "/opt/ruby/bin:$PATH" }
  35. # Default value for local_user is ENV['USER']
  36. # set :local_user, -> { `git config user.name`.chomp }
  37. # Default value for keep_releases is 5
  38. # set :keep_releases, 5
  39. # Uncomment the following to require manually verifying the host key before first deploy.
  40. # set :ssh_options, verify_host_key: :secure