Advertisement
Guest User

Untitled

a guest
Aug 10th, 2016
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.93 KB | None | 0 0
  1. $ cap production deploy --trace
  2. ** Invoke production (first_time)
  3. ** Execute production
  4. ** Invoke load:defaults (first_time)
  5. ** Execute load:defaults
  6. ** Invoke bundler:map_bins (first_time)
  7. ** Execute bundler:map_bins
  8. ** Invoke deploy (first_time)
  9. ** Execute deploy
  10. ** Invoke deploy:starting (first_time)
  11. ** Execute deploy:starting
  12. ** Invoke deploy:check (first_time)
  13. ** Execute deploy:check
  14. ** Invoke git:check (first_time)
  15. ** Invoke git:wrapper (first_time)
  16. ** Execute git:wrapper
  17. 00:00 git:wrapper
  18. 01 mkdir -p /tmp
  19. ✔ 01 vlmg@vlmg.mx 0.249s
  20. Uploading /tmp/git-ssh-vlmg-forms-production-ubuntu.sh 100.0%
  21. 02 chmod 700 /tmp/git-ssh-vlmg-forms-production-ubuntu.sh
  22. ✔ 02 vlmg@vlmg.mx 0.055s
  23.  
  24. # config valid only for current version of Capistrano
  25. lock '3.6.0'
  26.  
  27. set :application, 'vlmg-forms'
  28. set :repo_url, 'git@github.com:jose-octomedia/ar-vlmg-contact-forms.git'
  29.  
  30. # Default branch is :master
  31. # ask :branch, `git rev-parse --abbrev-ref HEAD`.chomp
  32.  
  33. # Default deploy_to directory is /var/www/my_app_name
  34. #set :deploy_to, '/'
  35.  
  36. # Default value for :scm is :git
  37. # set :scm, :git
  38.  
  39. # Default value for :format is :airbrussh.
  40. # set :format, :airbrussh
  41.  
  42. # You can configure the Airbrussh format using :format_options.
  43. # These are the defaults.
  44. # set :format_options, command_output: true, log_file: 'log/capistrano.log', color: :auto, truncate: :auto
  45.  
  46. # Default value for :pty is false
  47. set :pty, true
  48.  
  49. # Default value for :linked_files is []
  50. # append :linked_files, 'config/database.yml', 'config/secrets.yml'
  51.  
  52. # Default value for linked_dirs is []
  53. # append :linked_dirs, 'log', 'tmp/pids', 'tmp/cache', 'tmp/sockets', 'public/system'
  54.  
  55. # Default value for default_env is {}
  56. # set :default_env, { path: "/opt/ruby/bin:$PATH" }
  57.  
  58. # Default value for keep_releases is 5
  59. # set :keep_releases, 5
  60.  
  61. desc 'Restart application'
  62. task :restart do
  63. on roles(:web), in: :sequence, wait: 5 do
  64. execute "service thin restart" ## -> line you should add
  65. end
  66. end
  67.  
  68. # server-based syntax
  69. # ======================
  70. # Defines a single server with a list of roles and multiple properties.
  71. # You can define all roles on a single server, or split them:
  72. server 'vlmg.mx', user: 'vlmg', roles: %w{web}, primary: true, port: 18765
  73. # server 'example.com', user: 'deploy', roles: %w{app web}, other_property: :other_value
  74. # server 'db.example.com', user: 'deploy', roles: %w{db}
  75.  
  76. set :deploy_to, "/home/vlmg/subdomains/ar.vlmg.mx"
  77.  
  78.  
  79. # role-based syntax
  80. # ==================
  81.  
  82. # Defines a role with one or multiple servers. The primary server in each
  83. # group is considered to be the first unless any hosts have the primary
  84. # property set. Specify the username and a domain or IP for the server.
  85. # Don't use `:all`, it's a meta role.
  86.  
  87. #role :app, %w{admin@example.com}, my_property: :my_value
  88. role :web, %w{vlmg@vlmg.mx}
  89. # role :db, %w{deploy@example.com}
  90.  
  91.  
  92.  
  93. # Configuration
  94. # =============
  95. # You can set any configuration variable like in config/deploy.rb
  96. # These variables are then only loaded and set in this stage.
  97. # For available Capistrano configuration variables see the documentation page.
  98. # http://capistranorb.com/documentation/getting-started/configuration/
  99. # Feel free to add new variables to customise your setup.
  100.  
  101.  
  102.  
  103. # Custom SSH Options
  104. # ==================
  105. # You may pass any option but keep in mind that net/ssh understands a
  106. # limited set of options, consult the Net::SSH documentation.
  107. # http://net-ssh.github.io/net-ssh/classes/Net/SSH.html#method-c-start
  108. #
  109. # Global options
  110. # --------------
  111. set :ssh_options, {
  112. keys: %w(/home/ubuntu/.ssh/id_rsa),
  113. forward_agent: true
  114. #auth_methods: %w(password)
  115. }
  116. #
  117. # The server-based syntax can be used to override options:
  118. # ------------------------------------
  119. # server 'example.com',
  120. # user: 'user_name',
  121. # roles: %w{web app},
  122. # ssh_options: {
  123. # user: 'user_name', # overrides user setting above
  124. # keys: %w(/home/ubuntu/.ssh/id_rsa),
  125. # forward_agent: false,
  126. ## auth_methods: %w(publickey password)
  127. # # password: 'please use keys'
  128. # }
  129.  
  130. INFO ---------------------------------------------------------------------------
  131. INFO START 2016-08-10 19:49:49 +0000 cap production deploy
  132. INFO ---------------------------------------------------------------------------
  133. INFO [204569e4] Running /usr/bin/env mkdir -p /tmp as vlmg@vlmg.mx
  134. DEBUG [204569e4] Command: /usr/bin/env mkdir -p /tmp
  135. INFO [9596edc0] Running /usr/bin/env mkdir -p /tmp as vlmg@vlmg.mx
  136. DEBUG [9596edc0] Command: /usr/bin/env mkdir -p /tmp
  137. INFO [9596edc0] Finished in 0.288 seconds with exit status 0 (successful).
  138. DEBUG Uploading /tmp/git-ssh-vlmg-forms-production-ubuntu.sh 0.0%
  139. INFO Uploading /tmp/git-ssh-vlmg-forms-production-ubuntu.sh 100.0%
  140. INFO [1014be51] Running /usr/bin/env chmod 700 /tmp/git-ssh-vlmg-forms-production-ubuntu.sh as vlmg@vlmg.mx
  141. DEBUG [1014be51] Command: /usr/bin/env chmod 700 /tmp/git-ssh-vlmg-forms-production-ubuntu.sh
  142. INFO [1014be51] Finished in 0.057 seconds with exit status 0 (successful).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement