質問編集履歴
3
コードの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,32 +4,166 @@
|
|
4
4
|
|
5
5
|
```
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
re
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
remote:
|
7
|
+
Enumerating objects: 134, done.
|
8
|
+
|
9
|
+
Counting objects: 100% (134/134), done.
|
10
|
+
|
11
|
+
Delta compression using up to 4 threads
|
12
|
+
|
13
|
+
Compressing objects: 100% (117/117), done.
|
14
|
+
|
15
|
+
Writing objects: 100% (134/134), 50.76 KiB | 1.59 MiB/s, done.
|
16
|
+
|
17
|
+
Total 134 (delta 8), reused 0 (delta 0)
|
18
|
+
|
19
|
+
remote: Compressing source files... done.
|
20
|
+
|
21
|
+
remote: Building source:
|
22
|
+
|
23
|
+
remote:
|
24
|
+
|
25
|
+
remote: ! Warning: Multiple default buildpacks reported the ability to handle this app. The first buildpack in the list below will be used.
|
26
|
+
|
27
|
+
remote: Detected buildpacks: Ruby,Node.js
|
28
|
+
|
29
|
+
remote: See https://devcenter.heroku.com/articles/buildpacks#buildpack-detect-order
|
30
|
+
|
31
|
+
remote: -----> Ruby app detected
|
32
|
+
|
33
|
+
remote: -----> Compiling Ruby/Rails
|
34
|
+
|
35
|
+
remote: -----> Using Ruby version: ruby-2.5.3
|
36
|
+
|
37
|
+
remote: -----> Installing dependencies using bundler 2.0.2
|
38
|
+
|
39
|
+
remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
|
40
|
+
|
41
|
+
remote: The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
|
42
|
+
|
43
|
+
remote: Fetching gem metadata from https://rubygems.org/............
|
44
|
+
|
45
|
+
remote: Fetching rake 12.3.2
|
46
|
+
|
47
|
+
remote: Installing rake 12.3.2
|
48
|
+
|
49
|
+
略。。。
|
50
|
+
|
51
|
+
remote: Bundle complete! 21 Gemfile dependencies, 64 gems now installed.
|
52
|
+
|
53
|
+
remote: Gems in the groups development and test were not installed.
|
54
|
+
|
55
|
+
remote: Bundled gems are installed into `./vendor/bundle`
|
56
|
+
|
57
|
+
remote: Post-install message from i18n:
|
58
|
+
|
59
|
+
remote:
|
60
|
+
|
61
|
+
remote: HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
|
62
|
+
|
63
|
+
remote: But that may break your application.
|
64
|
+
|
65
|
+
remote:
|
66
|
+
|
67
|
+
remote: Please check your Rails app for 'config.i18n.fallbacks = true'.
|
68
|
+
|
69
|
+
remote: If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be
|
70
|
+
|
71
|
+
remote: 'config.i18n.fallbacks = [I18n.default_locale]'.
|
72
|
+
|
73
|
+
remote: If not, fallbacks will be broken in your app by I18n 1.1.x.
|
74
|
+
|
75
|
+
remote:
|
76
|
+
|
77
|
+
remote: For more info see:
|
78
|
+
|
79
|
+
remote: https://github.com/svenfuchs/i18n/releases/tag/v1.1.0
|
80
|
+
|
81
|
+
remote:
|
82
|
+
|
83
|
+
remote: Post-install message from sass:
|
84
|
+
|
85
|
+
remote:
|
86
|
+
|
87
|
+
remote: Ruby Sass has reached end-of-life and should no longer be used.
|
88
|
+
|
89
|
+
remote:
|
90
|
+
|
91
|
+
remote: * If you use Sass as a command-line tool, we recommend using Dart Sass, the new
|
92
|
+
|
93
|
+
remote: primary implementation: https://sass-lang.com/install
|
94
|
+
|
95
|
+
remote:
|
96
|
+
|
97
|
+
remote: * If you use Sass as a plug-in for a Ruby web framework, we recommend using the
|
98
|
+
|
99
|
+
remote: sassc gem: https://github.com/sass/sassc-ruby#readme
|
100
|
+
|
101
|
+
remote:
|
102
|
+
|
103
|
+
remote: * For more details, please refer to the Sass blog:
|
104
|
+
|
105
|
+
remote: https://sass-lang.com/blog/posts/7828841
|
106
|
+
|
107
|
+
remote:
|
108
|
+
|
109
|
+
remote: Bundle completed (46.16s)
|
110
|
+
|
111
|
+
remote: Cleaning up the bundler cache.
|
112
|
+
|
113
|
+
remote: -----> Installing node-v10.15.3-linux-x64
|
114
|
+
|
115
|
+
remote: -----> Detecting rake tasks
|
20
116
|
|
21
117
|
remote:
|
22
118
|
|
23
119
|
remote: !
|
24
120
|
|
25
|
-
remote: !
|
121
|
+
remote: ! Could not detect rake tasks
|
122
|
+
|
26
|
-
|
123
|
+
remote: ! ensure you can run `$ bundle exec rake -P` against your app
|
124
|
+
|
27
|
-
remote: !
|
125
|
+
remote: ! and using the production group of your Gemfile.
|
126
|
+
|
28
|
-
|
127
|
+
remote: ! Activating bundler (2.0.1) failed:
|
128
|
+
|
129
|
+
remote: ! Could not find 'bundler' (2.0.1) required by your /tmp/build_6cc6248f6174f755808dc4c0d9760448/Gemfile.lock.
|
130
|
+
|
131
|
+
remote: ! To update to the latest version installed on your system, run `bundle update --bundler`.
|
132
|
+
|
29
|
-
remote: !
|
133
|
+
remote: ! To install the missing version, run `gem install bundler:2.0.1`
|
134
|
+
|
135
|
+
remote: ! Checked in 'GEM_PATH=vendor/bundle/ruby/2.5.0', execute `gem env` for more information
|
136
|
+
|
137
|
+
remote: !
|
138
|
+
|
139
|
+
remote: ! To install the version of bundler this project requires, run `gem install bundler -v '2.0.1'`
|
30
140
|
|
31
141
|
remote: !
|
32
142
|
|
143
|
+
remote: /app/tmp/buildpacks/b7af5642714be4eddaa5f35e2b4c36176b839b4abcd9bfe57ee71c358d71152b4fd2cf925c5b6e6816adee359c4f0f966b663a7f8649b0729509d510091abc07/lib/language_pack/helpers/rake_runner.rb:106:in `load_rake_tasks!': Could not detect rake tasks (LanguagePack::Helpers::RakeRunner::CannotLoadRakefileError)
|
144
|
+
|
145
|
+
remote: ensure you can run `$ bundle exec rake -P` against your app
|
146
|
+
|
147
|
+
remote: and using the production group of your Gemfile.
|
148
|
+
|
149
|
+
remote: Activating bundler (2.0.1) failed:
|
150
|
+
|
151
|
+
remote: Could not find 'bundler' (2.0.1) required by your /tmp/build_6cc6248f6174f755808dc4c0d9760448/Gemfile.lock.
|
152
|
+
|
153
|
+
remote: To update to the latest version installed on your system, run `bundle update --bundler`.
|
154
|
+
|
155
|
+
remote: To install the missing version, run `gem install bundler:2.0.1`
|
156
|
+
|
157
|
+
remote: Checked in 'GEM_PATH=vendor/bundle/ruby/2.5.0', execute `gem env` for more information
|
158
|
+
|
159
|
+
remote:
|
160
|
+
|
161
|
+
remote: To install the version of bundler this project requires, run `gem install bundler -v '2.0.1'`
|
162
|
+
|
163
|
+
remote: from
|
164
|
+
|
165
|
+
略。。。
|
166
|
+
|
33
167
|
remote: ! Push rejected, failed to compile Ruby app.
|
34
168
|
|
35
169
|
remote:
|
@@ -40,15 +174,15 @@
|
|
40
174
|
|
41
175
|
remote:
|
42
176
|
|
43
|
-
remote: ! Push rejected to
|
177
|
+
remote: ! Push rejected to xxx.
|
44
|
-
|
178
|
+
|
45
|
-
remote:
|
179
|
+
remote:
|
46
|
-
|
180
|
+
|
47
|
-
To h
|
181
|
+
To ssh://heroku.com/xxx
|
48
182
|
|
49
183
|
! [remote rejected] master -> master (pre-receive hook declined)
|
50
184
|
|
51
|
-
error: failed to push some refs to 'h
|
185
|
+
error: failed to push some refs to 'ssh://git@heroku.com/xxx'
|
52
186
|
|
53
187
|
```
|
54
188
|
|
@@ -164,7 +298,7 @@
|
|
164
298
|
|
165
299
|
gem 'spring-watcher-listen', '~> 2.0.0'
|
166
300
|
|
167
|
-
gem 'sqlite3'
|
301
|
+
gem 'sqlite3', '~> 1.3.6'
|
168
302
|
|
169
303
|
end
|
170
304
|
|
@@ -188,9 +322,9 @@
|
|
188
322
|
|
189
323
|
group :production do
|
190
324
|
|
191
|
-
gem 'pg'
|
325
|
+
gem 'pg', '0.17.1'
|
326
|
+
|
192
|
-
|
327
|
+
gem 'rails_12factor', '0.0.2'
|
193
|
-
|
194
328
|
|
195
329
|
end
|
196
330
|
|
@@ -200,6 +334,4 @@
|
|
200
334
|
|
201
335
|
|
202
336
|
|
203
|
-
|
204
|
-
|
205
337
|
```
|
2
コードの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -56,7 +56,7 @@
|
|
56
56
|
|
57
57
|
#試したこと
|
58
58
|
|
59
|
-
Gemfileの
|
59
|
+
Gemfile を以下のように修正し bundle installしました。
|
60
60
|
|
61
61
|
以下は今のGemfileの中身です。
|
62
62
|
|
@@ -80,7 +80,7 @@
|
|
80
80
|
|
81
81
|
# Use sqlite3 as the database for Active Record
|
82
82
|
|
83
|
-
|
83
|
+
|
84
84
|
|
85
85
|
# Use Puma as the app server
|
86
86
|
|
@@ -164,6 +164,8 @@
|
|
164
164
|
|
165
165
|
gem 'spring-watcher-listen', '~> 2.0.0'
|
166
166
|
|
167
|
+
gem 'sqlite3'
|
168
|
+
|
167
169
|
end
|
168
170
|
|
169
171
|
|
@@ -186,9 +188,9 @@
|
|
186
188
|
|
187
189
|
group :production do
|
188
190
|
|
189
|
-
gem 'pg'
|
191
|
+
gem 'pg'
|
190
|
-
|
191
|
-
|
192
|
+
|
193
|
+
|
192
194
|
|
193
195
|
end
|
194
196
|
|
@@ -198,4 +200,6 @@
|
|
198
200
|
|
199
201
|
|
200
202
|
|
203
|
+
|
204
|
+
|
201
205
|
```
|
1
内容の補充
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
#Herokuにデプロイしたら以下のようなエラーが出てきてできませんでした。
|
2
2
|
|
3
|
+
`git push heroku master`した後以下のエラーが出てきました。
|
4
|
+
|
3
5
|
```
|
4
6
|
|
5
7
|
remote: An error occurred while installing sqlite3 (1.3.13), and Bundler cannot
|