Guest User

Untitled

a guest
Jan 12th, 2018
375
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.43 KB | None | 0 0
  1. gem 'capistrano', '~> 3.1.0'
  2.  
  3. #//Use unicorn as the app server
  4. gem 'unicorn'
  5.  
  6. #// Use Capistrano for deployment
  7. group :development do
  8. gem 'capistrano-rails'
  9. gem 'capistrano-bundler'
  10. gem 'capistrano-rbenv', "~> 2.0"
  11. end
  12.  
  13. source 'https://rubygems.org'
  14.  
  15. lock '3.1.0'
  16.  
  17. #// Define the name of the application
  18. set :application, 'my_app'
  19.  
  20. #// Define where can Capistrano access the source repository
  21. #// set :repo_url, 'https://github.com/[user name]/[application name].git'
  22. set :scm, :git
  23. set :repo_url, 'git@github.com:jaipratik/rw.git'
  24.  
  25. set :use_sudo, true
  26.  
  27. set :log_level, :debug
  28.  
  29. #// Define where to put your application code
  30. set :deploy_to, "/var/www/my_app"
  31.  
  32. set :pty, true
  33.  
  34. set :format, :pretty
  35.  
  36. role :app, %w{ubuntu@{IP/Host}}
  37.  
  38. server '{IP/Host}', user: 'ubuntu', roles: %w{web app}
  39.  
  40. set :ssh_options, {
  41. keys: %w(/Users/jay/.ssh/id_rsa),
  42. forward_agent: false,
  43. user: 'user'
  44. # auth_methods: %w(password)
  45. }
  46.  
  47. ** Invoke production (first_time)
  48. ** Execute production
  49. ** Invoke load:defaults (first_time)
  50. ** Execute load:defaults
  51. ** Invoke deploy (first_time)
  52. ** Execute deploy
  53. ** Invoke deploy:starting (first_time)
  54. ** Execute deploy:starting
  55. ** Invoke deploy:check (first_time)
  56. ** Execute deploy:check
  57. ** Invoke git:check (first_time)
  58. ** Invoke git:wrapper (first_time)
  59. ** Execute git:wrapper
  60. INFO[f8299d4f] Running /usr/bin/env mkdir -p /tmp/my_app/ on {IP/Host}
  61. DEBUG[f8299d4f] Command: /usr/bin/env mkdir -p /tmp/my_app/
  62. INFO[f8299d4f] Finished in 0.723 seconds with exit status 0 (successful).
  63. DEBUGUploading /tmp/my_app/git-ssh.sh 0.0%
  64. INFOUploading /tmp/my_app/git-ssh.sh 100.0%
  65. INFO[b509dfb7] Running /usr/bin/env chmod +x /tmp/my_app/git-ssh.sh on {IP/Host}
  66. DEBUG[b509dfb7] Command: /usr/bin/env chmod +x /tmp/my_app/git-ssh.sh
  67. INFO[b509dfb7] Finished in 0.084 seconds with exit status 0 (successful).
  68. ** Execute git:check
  69. DEBUG[9646aea0] Running /usr/bin/env git ls-remote git@github.com:jaipratik/rw.git on {IP/Host}
  70. DEBUG[9646aea0] Command: ( GIT_ASKPASS=/bin/echo GIT_SSH=/tmp/my_app/git-ssh.sh /usr/bin/env git ls-remote git@github.com:jaipratik/rw.git )
  71. DEBUG[9646aea0] c452c845bb80f72d3023557d2ea8f776950c659f
  72. DEBUG[9646aea0]
  73. DEBUG[9646aea0] HEAD
  74. DEBUG[9646aea0]
  75. DEBUG[9646aea0] c452c845bb80f72d3023557d2ea8f776950c659f
  76. DEBUG[9646aea0]
  77. DEBUG[9646aea0] refs/heads/master
  78. DEBUG[9646aea0]
  79. DEBUG[9646aea0] Finished in 0.940 seconds with exit status 0 (successful).
  80. ** Invoke deploy:check:directories (first_time)
  81. ** Execute deploy:check:directories
  82. INFO[fa4b1f56] Running /usr/bin/env mkdir -pv /var/www/my_app/shared /var/www/my_app/releases on {IP/Host}
  83. DEBUG[fa4b1f56] Command: /usr/bin/env mkdir -pv /var/www/my_app/shared /var/www/my_app/releases
  84. INFO[fa4b1f56] Finished in 0.086 seconds with exit status 0 (successful).
  85. ** Invoke deploy:check:linked_dirs (first_time)
  86. ** Execute deploy:check:linked_dirs
  87. ** Invoke deploy:check:make_linked_dirs (first_time)
  88. ** Execute deploy:check:make_linked_dirs
  89. ** Invoke deploy:check:linked_files (first_time)
  90. ** Execute deploy:check:linked_files
  91. ** Invoke deploy:started (first_time)
  92. ** Execute deploy:started
  93. ** Invoke deploy:updating (first_time)
  94. ** Invoke deploy:new_release_path (first_time)
  95. ** Execute deploy:new_release_path
  96. ** Execute deploy:updating
  97. ** Invoke git:create_release (first_time)
  98. ** Invoke git:update (first_time)
  99. ** Invoke git:clone (first_time)
  100. ** Invoke git:wrapper
  101. ** Execute git:clone
  102. DEBUG[fa77f295] Running /usr/bin/env [ -f /var/www/my_app/repo/HEAD ] on {IP/Host}
  103. DEBUG[fa77f295] Command: [ -f /var/www/my_app/repo/HEAD ]
  104. DEBUG[fa77f295] Finished in 0.081 seconds with exit status 1 (failed).
  105. DEBUG[0cc407cc] Running /usr/bin/env if test ! -d /var/www/my_app; then echo "Directory does not exist '/var/www/my_app'" 1>&2; false; fi on {IP/Host}
  106. DEBUG[0cc407cc] Command: if test ! -d /var/www/my_app; then echo "Directory does not exist '/var/www/my_app'" 1>&2; false; fi
  107. DEBUG[0cc407cc] Finished in 0.075 seconds with exit status 0 (successful).
  108. INFO[de52ca0e] Running /usr/bin/env git clone --mirror git@github.com:jaipratik/rw.git /var/www/my_app/repo on {IP/Host}`enter code here`
  109. DEBUG[de52ca0e] Command: cd /var/www/my_app && ( GIT_ASKPASS=/bin/echo GIT_SSH=/tmp/my_app/git-ssh.sh /usr/bin/env git clone --mirror git@github.com:jaipratik/rw.git /var/www/my_app/repo )
  110. cap aborted!
  111. SSHKit::Runner::ExecuteError: Exception while executing on host {IP/Host}: git exit status: 1
  112. git stdout: Nothing written
  113. git stderr: Nothing written
  114. /Users/jay/.rvm/gems/ruby-2.1.0/gems/sshkit-1.5.1/
  115.  
  116. set :user, "mydeployuser"
  117.  
  118. set :use_sudo, true
Add Comment
Please, Sign In to add comment