質問編集履歴
1
修正
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
デプロイ時の
|
1
|
+
デプロイ時のassets:precompileのエラー
|
body
CHANGED
@@ -1,61 +1,38 @@
|
|
1
1
|
railsアプリケーションをaws使ってデプロイしたいのですが、うまくいかず困っております。
|
2
2
|
|
3
|
-
https://qiita.com/iwaseasahi/items/b28f8b91c4638e2c57fdこちらの記事をみながらデプロイをしているのですが、
|
3
|
+
https://qiita.com/iwaseasahi/items/b28f8b91c4638e2c57fdこちらの記事をみながらデプロイをしているのですが、デプロイ最後のブラウザに表示させる場面にて画面がWe're sorry, but something went wrong.のメッセージ画面から変わりません。
|
4
4
|
|
5
|
+
ターミナルにて/自分のアプリ/log/production.logみてみたところ
|
6
|
+
```
|
5
|
-
|
7
|
+
ActionView::Template::Error (The asset "application.css" is not present in the asset pipeline.):
|
6
8
|
|
7
|
-
まづデータベース作成するためにこちらのコマンド入力しました
|
8
9
|
```
|
9
|
-
|
10
|
+
が、出ていましたのでこちらのエラー調べて対応したのですがうまくいきませんでした。
|
11
|
+
|
12
|
+
こちらのコマンドは試したのですが
|
10
13
|
```
|
11
|
-
|
14
|
+
bundle exec rake assets:precompile RAILS_ENV=production
|
12
15
|
```
|
13
|
-
Access denied for user 'root'@'10.0.1.174' (using password: YES)Please provide the root password for your MySQL installation
|
14
|
-
>
|
15
16
|
```
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
17
|
+
/usr/bin/env: ruby2.3: そのようなファイルやディレクトリはありません
|
18
|
+
・
|
19
|
+
・
|
20
|
+
・
|
20
21
|
rake aborted!
|
21
|
-
|
22
|
+
Sass::SyntaxError: Invalid CSS after " color: ": expected expression (e.g. 1px, bold), was ";"
|
23
|
+
(sass):1652
|
22
24
|
|
23
25
|
```
|
24
26
|
|
25
|
-
|
27
|
+
というのが出てきています。
|
26
|
-
```
|
27
|
-
vim config/database.yml
|
28
|
-
```
|
29
|
-
```
|
30
28
|
|
31
|
-
|
29
|
+
やはりブラウザで表示できないのはこのassets:precompileができない為と思っているので、こちらをどのようにしらいいか教えていただきたいです。
|
32
|
-
timeout: 5000
|
33
30
|
|
34
|
-
development:
|
35
|
-
<<: *default
|
36
|
-
|
31
|
+
これやアセットパイプラインなど調べてはいますが未だ通らず困っています。お分かりになるかた宜しくお願いいたしますm(._.)m
|
37
32
|
|
38
|
-
# Warning: The database defined as "test" will be erased and
|
39
|
-
# re-generated from your development database when you run "rake".
|
40
|
-
# Do not set this db to the same as development or production.
|
41
|
-
test:
|
42
|
-
<<: *default
|
43
|
-
database: db/test.sqlite3
|
44
33
|
|
45
|
-
production:
|
46
|
-
<<: *default
|
47
|
-
adapter: mysql2
|
48
|
-
encoding: utf8
|
49
|
-
|
34
|
+
あと、関係があるかわかりませんが、デプロイ作業の途中で、git cloneした際に
|
50
|
-
username: root
|
51
|
-
password: abcd1234
|
52
|
-
host: portfolio-mysql.cxputm26p9ho.ap-northeast-1.rds.amazonaws.com
|
53
|
-
port: 3306
|
54
|
-
|
55
35
|
```
|
56
|
-
|
57
|
-
関係があるかわかりませんが、デプロイ作業の途中で、git cloneした際に
|
58
|
-
```
|
59
36
|
bundle install --path vendor/bundle
|
60
37
|
```
|
61
38
|
|