質問編集履歴
3
不要な箇所を修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -28,22 +28,9 @@
|
|
28
28
|
```
|
29
29
|
|
30
30
|
```
|
31
|
-
INFO ---------------------------------------------------------------------------
|
32
|
-
INFO START 2020-02-13 21:13:08 +0900 cap production deploy
|
33
|
-
INFO ---------------------------------------------------------------------------
|
34
|
-
DEBUG [ba611318] Running [ -d $HOME/.rbenv/versions/2.5.1 ] as test_user@54.248.37.95
|
35
|
-
DEBUG [ba611318] Command: [ -d $HOME/.rbenv/versions/2.5.1 ]
|
36
|
-
DEBUG [ba611318] Finished in 0.853 seconds with exit status 0 (successful).
|
37
|
-
INFO [43a432fe] Running /usr/bin/env mkdir -p /tmp as test_user@54.248.37.95
|
38
|
-
DEBUG [43a432fe] Command: ( export RBENV_ROOT="$HOME/.rbenv" RBENV_VERSION="2.5.1" ; /usr/bin/env mkdir -p /tmp )
|
39
|
-
INFO [43a432fe] Finished in 0.262 seconds with exit status 0 (successful).
|
40
|
-
DEBUG Uploading /tmp/git-ssh-bookcafe-review-app-production-matsumotodaisuke.sh 0.0%
|
41
|
-
INFO Uploading /tmp/git-ssh-bookcafe-review-app-production-matsumotodaisuke.sh 100.0%
|
42
|
-
INFO [8540a485] Running /usr/bin/env chmod 700 /tmp/git-ssh-bookcafe-review-app-production-matsumotodaisuke.sh as test_user@54.248.37.95
|
43
|
-
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 )
|
44
31
|
INFO [8540a485] Finished in 0.252 seconds with exit status 0 (successful).
|
45
|
-
INFO [8ccb5677] Running /usr/bin/env git ls-remote git@github.com:
|
46
|
-
DEBUG [8ccb5677] Command: ( export RBENV_ROOT="$HOME/.rbenv" RBENV_VERSION="2.5.1" GIT_ASKPASS="/bin/echo" GIT_SSH="/tmp/git-ssh-
|
32
|
+
INFO [8ccb5677] Running /usr/bin/env git ls-remote git@github.com:ユーザー名/リポジトリ名.git HEAD as ユーザー名@IP
|
33
|
+
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 )
|
47
34
|
DEBUG [8ccb5677] Permission denied (publickey).
|
48
35
|
DEBUG [8ccb5677] fatal: Could not read from remote repository.
|
49
36
|
|
@@ -68,15 +55,15 @@
|
|
68
55
|
#config/deploy.rb
|
69
56
|
lock '3.11.2'
|
70
57
|
|
71
|
-
set :application, '
|
58
|
+
set :application, 'ファイル名'
|
72
59
|
|
73
|
-
set :repo_url, 'git@github.com:
|
60
|
+
set :repo_url, 'git@github.com:のユーザー名/ファイル名.git'
|
74
61
|
|
75
62
|
set :linked_dirs, fetch(:linked_dirs, []).push('log', 'tmp/pids', 'tmp/cache', 'tmp/sockets', 'vendor/bundle', 'public/system', 'public/uploads')
|
76
63
|
|
77
64
|
set :linked_files, fetch(:linked_files, []).push('config/settings.yml')
|
78
65
|
|
79
|
-
set :deploy_to, '/var/www/projects/
|
66
|
+
set :deploy_to, '/var/www/projects/ファイル名'
|
80
67
|
|
81
68
|
set :rbenv_type, :user
|
82
69
|
|
@@ -85,7 +72,7 @@
|
|
85
72
|
set :log_level, :debug
|
86
73
|
|
87
74
|
set :ssh_options, auth_methods: ['publickey'],
|
88
|
-
keys: ['~/.ssh/
|
75
|
+
keys: ['~/.ssh/key.pem']
|
89
76
|
|
90
77
|
set :linked_files, %w{ config/secrets.yml }
|
91
78
|
|
@@ -135,7 +122,7 @@
|
|
135
122
|
#config/unicorn/production.rb
|
136
123
|
$worker = 2
|
137
124
|
$timeout = 30
|
138
|
-
$app_dir = "/var/www/projects/
|
125
|
+
$app_dir = "/var/www/projects/ファイル名/current"
|
139
126
|
$listen = File.expand_path 'tmp/sockets/.unicorn.sock', $app_dir
|
140
127
|
$pid = File.expand_path 'tmp/pids/unicorn.pid', $app_dir
|
141
128
|
$std_log = File.expand_path 'log/unicorn.log', $app_dir
|
2
リンクを修正しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
### 実現したいこと
|
8
8
|
現在ポートフォリオを作成中で、
|
9
9
|
以下の記事を参考にデプロイまで辿りつきました。
|
10
|
-
(https://qiita.com/iwaseasahi/items/b28f8b91c4638e2c57fd)
|
10
|
+
[リンク内容](https://qiita.com/iwaseasahi/items/b28f8b91c4638e2c57fd)
|
11
11
|
|
12
12
|
さらにAWSのACM,Route53,ALBを用いて、ドメイン名にHTTPSでアクセスできるまでは実装できたのですが、
|
13
13
|
そこからcapistranoによる自動デプロイを
|
1
環境とリンクを追記しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,11 +1,18 @@
|
|
1
|
+
### 環境
|
2
|
+
ruby 2.5.1
|
3
|
+
rails 5.0.7
|
4
|
+
capistrano 3.11.2
|
5
|
+
capistrano 5.5.1
|
6
|
+
|
1
7
|
### 実現したいこと
|
2
8
|
現在ポートフォリオを作成中で、
|
3
9
|
以下の記事を参考にデプロイまで辿りつきました。
|
4
|
-
https://qiita.com/iwaseasahi/items/b28f8b91c4638e2c57fd
|
10
|
+
(https://qiita.com/iwaseasahi/items/b28f8b91c4638e2c57fd)
|
5
11
|
|
6
12
|
さらにAWSのACM,Route53,ALBを用いて、ドメイン名にHTTPSでアクセスできるまでは実装できたのですが、
|
7
13
|
そこからcapistranoによる自動デプロイを
|
14
|
+
こちらの記事
|
8
|
-
|
15
|
+
[リンク内容](https://qiita.com/naoki_mochizuki/items/657aca7531b8948d267b#comments)
|
9
16
|
を参考に試してみましたがエラーが起きどうしても前に進みません。
|
10
17
|
|
11
18
|
### エラー
|