質問編集履歴
2
config/deploy.rbの内容を追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -35,3 +35,37 @@
|
|
35
35
|
サイト、参考書などで調べてもなにも出てこないのでどなたか教えて頂けないでしょうか?
|
36
36
|
|
37
37
|
宜しくお願いします。
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
追記3
|
42
|
+
|
43
|
+
```ここに言語を入力
|
44
|
+
|
45
|
+
config/deploy.rb
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
namespace :deploy do
|
50
|
+
|
51
|
+
desc 'Upload database.yml'
|
52
|
+
|
53
|
+
task :upload do
|
54
|
+
|
55
|
+
on roles(:app) do |host|
|
56
|
+
|
57
|
+
if test "[ ! -d #{shared_path}/config ]"
|
58
|
+
|
59
|
+
execute "mkdir -p #{shared_path}/config"
|
60
|
+
|
61
|
+
end
|
62
|
+
|
63
|
+
upload!('config/database.yml', "#{shared_path}/config/database.yml")
|
64
|
+
|
65
|
+
end
|
66
|
+
|
67
|
+
end
|
68
|
+
|
69
|
+
```
|
70
|
+
|
71
|
+
としていますがこれが影響しているのでしょうか?
|
1
IPアドレス変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
```ここに言語を入力
|
8
8
|
|
9
|
-
[c5ef98e8] Running if test ! -d /var/www/html/repo; then echo "Directory does not exist '/var/www/html/repo'" 1>&2; false; fi as
|
9
|
+
[c5ef98e8] Running if test ! -d /var/www/html/repo; then echo "Directory does not exist '/var/www/html/repo'" 1>&2; false; fi as panda@xxx.xxx.xxx.xx
|
10
10
|
|
11
11
|
DEBUG [c5ef98e8] Command: if test ! -d /var/www/html/repo; then echo "Directory does not exist '/var/www/html/repo'" 1>&2; false; fi
|
12
12
|
|
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
cap aborted!
|
16
16
|
|
17
|
-
SSHKit::Runner::ExecuteError: Exception while executing as
|
17
|
+
SSHKit::Runner::ExecuteError: Exception while executing as panda@xxx.xxx.xxx.xx: if test ! -d /var/www/html/repo; then echo "Directory does not exist '/var/www/html/repo'" 1>&2; false; fi exit status: 1
|
18
18
|
|
19
19
|
if test ! -d /var/www/html/repo; then echo "Directory does not exist '/var/www/html/repo'" 1>&2; false; fi stdout: Directory does not exist '/var/www/html/repo'
|
20
20
|
|