質問編集履歴
3
不要な箇所を修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -58,37 +58,11 @@
|
|
58
58
|
|
59
59
|
```
|
60
60
|
|
61
|
-
INFO ---------------------------------------------------------------------------
|
62
|
-
|
63
|
-
INFO START 2020-02-13 21:13:08 +0900 cap production deploy
|
64
|
-
|
65
|
-
INFO ---------------------------------------------------------------------------
|
66
|
-
|
67
|
-
DEBUG [ba611318] Running [ -d $HOME/.rbenv/versions/2.5.1 ] as test_user@54.248.37.95
|
68
|
-
|
69
|
-
DEBUG [ba611318] Command: [ -d $HOME/.rbenv/versions/2.5.1 ]
|
70
|
-
|
71
|
-
DEBUG [ba611318] Finished in 0.853 seconds with exit status 0 (successful).
|
72
|
-
|
73
|
-
INFO [43a432fe] Running /usr/bin/env mkdir -p /tmp as test_user@54.248.37.95
|
74
|
-
|
75
|
-
DEBUG [43a432fe] Command: ( export RBENV_ROOT="$HOME/.rbenv" RBENV_VERSION="2.5.1" ; /usr/bin/env mkdir -p /tmp )
|
76
|
-
|
77
|
-
INFO [43a432fe] Finished in 0.262 seconds with exit status 0 (successful).
|
78
|
-
|
79
|
-
DEBUG Uploading /tmp/git-ssh-bookcafe-review-app-production-matsumotodaisuke.sh 0.0%
|
80
|
-
|
81
|
-
INFO Uploading /tmp/git-ssh-bookcafe-review-app-production-matsumotodaisuke.sh 100.0%
|
82
|
-
|
83
|
-
INFO [8540a485] Running /usr/bin/env chmod 700 /tmp/git-ssh-bookcafe-review-app-production-matsumotodaisuke.sh as test_user@54.248.37.95
|
84
|
-
|
85
|
-
DEBUG [8540a485] Command: ( export RBENV_ROOT="$HOME/.rbenv" RBENV_VERSION="2.5.1" ; /usr/bin/env chmod 700 /tmp/git-ssh-bookcafe-review-app-production-matsumotodaisuke.sh )
|
86
|
-
|
87
61
|
INFO [8540a485] Finished in 0.252 seconds with exit status 0 (successful).
|
88
62
|
|
89
|
-
INFO [8ccb5677] Running /usr/bin/env git ls-remote git@github.com:
|
90
|
-
|
91
|
-
DEBUG [8ccb5677] Command: ( export RBENV_ROOT="$HOME/.rbenv" RBENV_VERSION="2.5.1" GIT_ASKPASS="/bin/echo" GIT_SSH="/tmp/git-ssh-
|
63
|
+
INFO [8ccb5677] Running /usr/bin/env git ls-remote git@github.com:ユーザー名/リポジトリ名.git HEAD as ユーザー名@IP
|
64
|
+
|
65
|
+
DEBUG [8ccb5677] Command: ( export RBENV_ROOT="$HOME/.rbenv" RBENV_VERSION="2.5.1" GIT_ASKPASS="/bin/echo" GIT_SSH="/tmp/git-ssh-ファイル名-production-ホームディレクトリ.sh" ; /usr/bin/env git ls-remote git@github.com:gitのユーザー名/ファイル名.git HEAD )
|
92
66
|
|
93
67
|
DEBUG [8ccb5677] Permission denied (publickey).
|
94
68
|
|
@@ -138,11 +112,11 @@
|
|
138
112
|
|
139
113
|
|
140
114
|
|
141
|
-
set :application, '
|
115
|
+
set :application, 'ファイル名'
|
142
|
-
|
143
|
-
|
144
|
-
|
116
|
+
|
117
|
+
|
118
|
+
|
145
|
-
set :repo_url, 'git@github.com:
|
119
|
+
set :repo_url, 'git@github.com:のユーザー名/ファイル名.git'
|
146
120
|
|
147
121
|
|
148
122
|
|
@@ -154,7 +128,7 @@
|
|
154
128
|
|
155
129
|
|
156
130
|
|
157
|
-
set :deploy_to, '/var/www/projects/
|
131
|
+
set :deploy_to, '/var/www/projects/ファイル名'
|
158
132
|
|
159
133
|
|
160
134
|
|
@@ -172,7 +146,7 @@
|
|
172
146
|
|
173
147
|
set :ssh_options, auth_methods: ['publickey'],
|
174
148
|
|
175
|
-
keys: ['~/.ssh/key
|
149
|
+
keys: ['~/.ssh/key.pem']
|
176
150
|
|
177
151
|
|
178
152
|
|
@@ -272,7 +246,7 @@
|
|
272
246
|
|
273
247
|
$timeout = 30
|
274
248
|
|
275
|
-
$app_dir = "/var/www/projects/
|
249
|
+
$app_dir = "/var/www/projects/ファイル名/current"
|
276
250
|
|
277
251
|
$listen = File.expand_path 'tmp/sockets/.unicorn.sock', $app_dir
|
278
252
|
|
2
リンクを修正しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
以下の記事を参考にデプロイまで辿りつきました。
|
18
18
|
|
19
|
-
(https://qiita.com/iwaseasahi/items/b28f8b91c4638e2c57fd)
|
19
|
+
[リンク内容](https://qiita.com/iwaseasahi/items/b28f8b91c4638e2c57fd)
|
20
20
|
|
21
21
|
|
22
22
|
|
1
環境とリンクを追記しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,10 +1,22 @@
|
|
1
|
+
### 環境
|
2
|
+
|
3
|
+
ruby 2.5.1
|
4
|
+
|
5
|
+
rails 5.0.7
|
6
|
+
|
7
|
+
capistrano 3.11.2
|
8
|
+
|
9
|
+
capistrano 5.5.1
|
10
|
+
|
11
|
+
|
12
|
+
|
1
13
|
### 実現したいこと
|
2
14
|
|
3
15
|
現在ポートフォリオを作成中で、
|
4
16
|
|
5
17
|
以下の記事を参考にデプロイまで辿りつきました。
|
6
18
|
|
7
|
-
https://qiita.com/iwaseasahi/items/b28f8b91c4638e2c57fd
|
19
|
+
(https://qiita.com/iwaseasahi/items/b28f8b91c4638e2c57fd)
|
8
20
|
|
9
21
|
|
10
22
|
|
@@ -12,7 +24,9 @@
|
|
12
24
|
|
13
25
|
そこからcapistranoによる自動デプロイを
|
14
26
|
|
27
|
+
こちらの記事
|
28
|
+
|
15
|
-
|
29
|
+
[リンク内容](https://qiita.com/naoki_mochizuki/items/657aca7531b8948d267b#comments)
|
16
30
|
|
17
31
|
を参考に試してみましたがエラーが起きどうしても前に進みません。
|
18
32
|
|