質問編集履歴

1

修正

2018/05/23 05:19

投稿

takeke
takeke

スコア60

test CHANGED
@@ -1 +1 @@
1
- デプロイ時のMySQLのエラー
1
+ デプロイ時のassets:precompileのエラー
test CHANGED
@@ -2,43 +2,47 @@
2
2
 
3
3
 
4
4
 
5
- https://qiita.com/iwaseasahi/items/b28f8b91c4638e2c57fdこちらの記事をみながらデプロイをしているのですが、途中Mysqld箇所でうまくいかず、そこを飛ばし進んでしまったのです最後unicornの起動のところでやは影響が出てきてしいました
5
+ https://qiita.com/iwaseasahi/items/b28f8b91c4638e2c57fdこちらの記事をみながらデプロイをしているのですが、デプロイ最後ブラウザに表示させる場面に画面We're sorry, but something went wrong.メッセージ画面から変わりません
6
6
 
7
7
 
8
8
 
9
+ ターミナルにて/自分のアプリ/log/production.logみてみたところ
10
+
11
+ ```
12
+
9
- 現在、mysqldを起動して、データベースを作成し、production環境でマイグレーションを実行しようとしているのですがそこでエラーが出てきています。
13
+ ActionView::Template::Error (The asset "application.css" is not present in the asset pipeline.):
10
14
 
11
15
 
12
16
 
17
+ ```
18
+
19
+ が、出ていましたのでこちらのエラー調べて対応したのですがうまくいきませんでした。
20
+
21
+
22
+
13
- まづデータベース作成するためにこちらのコマンド入力まし
23
+ こちらのコマンドは試したのですが
14
24
 
15
25
  ```
16
26
 
17
- bundle exec rake db:create RAILS_ENV=production
27
+ bundle exec rake assets:precompile RAILS_ENV=production
18
28
 
19
29
  ```
20
30
 
21
- すると発生するエラーがこちらです
22
-
23
31
  ```
24
32
 
25
- Access denied for user 'root'@'10.0.1.174' (using password: YES)Please provide the root password for your MySQL installation
33
+ /usr/bin/env: ruby2.3: そのようなファイルやディレクトリはありません
26
34
 
27
- >
35
+
28
36
 
29
- ```
37
+
30
38
 
31
- 最後の>は何か入力を促すものです。恐らくパスワードだと思い、コンフィグで使ったパスワードを入力すると膨大な量の記述の記述が流れていきました。冒頭部分はこちらです
32
-
33
- ```
34
-
35
- Access denied for user 'root'@'10.0.1.174' (using password: YES)
36
-
37
- Couldn't create database for {"adapter"=>"mysql2", "pool"=>5, "timeout"=>5000, "encoding"=>"utf8", "database"=>"portfolio_production", "username"=>"root", "password"=>"take1873", "host"=>"portfolio-mysql.cxputm26p9ho.ap-northeast-1.rds.amazonaws.com", "port"=>3306}
39
+
38
40
 
39
41
  rake aborted!
40
42
 
41
- Mysql2::Error::ConnectionError: Access denied for user 'root'@'10.0.1.174' (using password: YES)
43
+ Sass::SyntaxError: Invalid CSS after " color: ": expected expression (e.g. 1px, bold), was ";"
44
+
45
+ (sass):1652
42
46
 
43
47
 
44
48
 
@@ -46,71 +50,21 @@
46
50
 
47
51
 
48
52
 
49
- ためコンフィグです。こちらのコマンドで出しました
53
+ というが出てきています。
50
-
51
- ```
52
-
53
- vim config/database.yml
54
-
55
- ```
56
-
57
- ```
58
54
 
59
55
 
60
56
 
61
- pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
57
+ やはりブラウザで表示できないのはこのassets:precompileができない為と思っているので、こちらをどのようにしらいいか教えていただきたいです。
62
-
63
- timeout: 5000
64
58
 
65
59
 
66
60
 
67
- development:
68
-
69
- <<: *default
70
-
71
- database: db/development.sqlite3
61
+ これやアセットパイプラインなど調べてはいますが未だ通らず困っています。お分かりになるかた宜しくお願いいたしますm(._.)m
72
62
 
73
63
 
74
64
 
75
- # Warning: The database defined as "test" will be erased and
76
-
77
- # re-generated from your development database when you run "rake".
78
-
79
- # Do not set this db to the same as development or production.
80
-
81
- test:
82
-
83
- <<: *default
84
-
85
- database: db/test.sqlite3
86
65
 
87
66
 
88
-
89
- production:
90
-
91
- <<: *default
92
-
93
- adapter: mysql2
94
-
95
- encoding: utf8
96
-
97
- database: portfolio_production
98
-
99
- username: root
100
-
101
- password: abcd1234
102
-
103
- host: portfolio-mysql.cxputm26p9ho.ap-northeast-1.rds.amazonaws.com
104
-
105
- port: 3306
106
-
107
-
108
-
109
- ```
110
-
111
-
112
-
113
- 関係があるかわかりませんが、デプロイ作業の途中で、git cloneした際に
67
+ あと、関係があるかわかりませんが、デプロイ作業の途中で、git cloneした際に
114
68
 
115
69
  ```
116
70