質問編集履歴

3

追記

2019/12/15 11:09

投稿

yakumo02
yakumo02

スコア103

test CHANGED
File without changes
test CHANGED
@@ -6,6 +6,14 @@
6
6
 
7
7
  https://qiita.com/kazukimatsumoto/items/a0daa7281a3948701c39
8
8
 
9
+
10
+
11
+ ターミナルで$heroku login を実行した場合ターミナルでeメールとパスワードの入力を求められるみたいですが自分は以下のページに遷移します
12
+
13
+ $heroku -vをするとバージョン情報が表示されるのでインストールは成功してると思います
14
+
15
+ ![イメージ説明](53bc328cc99ba3808087b5b4d94dfd39.png)
16
+
9
17
  ```
10
18
 
11
19
  Enumerating objects: 894, done.

2

追記

2019/12/15 11:09

投稿

yakumo02
yakumo02

スコア103

test CHANGED
File without changes
test CHANGED
@@ -47,3 +47,309 @@
47
47
  error: failed to push some refs to 'https://git.heroku.com/whispering-ridge-73721.git'
48
48
 
49
49
  ```
50
+
51
+
52
+
53
+
54
+
55
+ Gemfile
56
+
57
+ ```
58
+
59
+ source 'https://rubygems.org'
60
+
61
+
62
+
63
+ git_source(:github) do |repo_name|
64
+
65
+ repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
66
+
67
+ "https://github.com/#{repo_name}.git"
68
+
69
+ end
70
+
71
+
72
+
73
+
74
+
75
+ # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
76
+
77
+ gem 'rails', '~> 5.0.7', '>= 5.0.7.2'
78
+
79
+ # Use mysql as the database for Active Record
80
+
81
+ # gem 'mysql2', '>= 0.3.18', '< 0.6.0'
82
+
83
+ # Use Puma as the app server
84
+
85
+ gem 'puma', '~> 3.0'
86
+
87
+ # Use SCSS for stylesheets
88
+
89
+ gem 'sass-rails', '~> 5.0'
90
+
91
+ # Use Uglifier as compressor for JavaScript assets
92
+
93
+ gem 'uglifier', '>= 1.3.0'
94
+
95
+ # Use CoffeeScript for .coffee assets and views
96
+
97
+ gem 'coffee-rails', '~> 4.2'
98
+
99
+ # See https://github.com/rails/execjs#readme for more supported runtimes
100
+
101
+ # gem 'therubyracer', platforms: :ruby
102
+
103
+
104
+
105
+ # Use jquery as the JavaScript library
106
+
107
+ gem 'jquery-rails'
108
+
109
+ # Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
110
+
111
+ gem 'turbolinks', '~> 5'
112
+
113
+ # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
114
+
115
+ gem 'jbuilder', '~> 2.5'
116
+
117
+ # Use Redis adapter to run Action Cable in production
118
+
119
+ # gem 'redis', '~> 3.0'
120
+
121
+ # Use ActiveModel has_secure_password
122
+
123
+ # gem 'bcrypt', '~> 3.1.7'
124
+
125
+
126
+
127
+ # Use Capistrano for deployment
128
+
129
+ # gem 'capistrano-rails', group: :development
130
+
131
+
132
+
133
+ group :development, :test do
134
+
135
+ # Call 'byebug' anywhere in the code to stop execution and get a debugger console
136
+
137
+ gem 'byebug', platform: :mri
138
+
139
+ gem 'pry-rails'
140
+
141
+ end
142
+
143
+
144
+
145
+ group :development do
146
+
147
+ # Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
148
+
149
+ gem 'web-console', '>= 3.3.0'
150
+
151
+ gem 'listen', '~> 3.0.5'
152
+
153
+ # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
154
+
155
+ gem 'spring'
156
+
157
+ gem 'spring-watcher-listen', '~> 2.0.0'
158
+
159
+ end
160
+
161
+ gem 'carrierwave'
162
+
163
+ gem 'fog-aws'
164
+
165
+
166
+
167
+ # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
168
+
169
+ gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
170
+
171
+ gem 'haml-rails'
172
+
173
+ gem "font-awesome-rails"
174
+
175
+ gem 'devise'
176
+
177
+ gem 'carrierwave'
178
+
179
+ gem 'mini_magick'
180
+
181
+ gem 'rspec-rails', '~> 3.5'
182
+
183
+ gem 'rails-controller-testing'
184
+
185
+ gem 'factory_bot_rails'
186
+
187
+ gem 'faker'
188
+
189
+ group :test, :development do
190
+
191
+ gem 'capybara'
192
+
193
+ end
194
+
195
+ # group :production do
196
+
197
+ # gem 'unicorn', '5.4.1'
198
+
199
+ # end
200
+
201
+ # group :development, :test do
202
+
203
+ # gem 'capistrano'
204
+
205
+ # gem 'capistrano-rbenv'
206
+
207
+ # gem 'capistrano-bundler'
208
+
209
+ # gem 'capistrano-rails'
210
+
211
+ # gem 'capistrano3-unicorn'
212
+
213
+ # end
214
+
215
+
216
+
217
+ group :production do
218
+
219
+ gem 'pg'
220
+
221
+ end
222
+
223
+
224
+
225
+ group :development, :test do
226
+
227
+ gem 'mysql2'
228
+
229
+ end
230
+
231
+ ```
232
+
233
+
234
+
235
+ database.yml
236
+
237
+
238
+
239
+ ```
240
+
241
+ # MySQL. Versions 5.0 and up are supported.
242
+
243
+ #
244
+
245
+ # Install the MySQL driver
246
+
247
+ # gem install mysql2
248
+
249
+ #
250
+
251
+ # Ensure the MySQL gem is defined in your Gemfile
252
+
253
+ # gem 'mysql2'
254
+
255
+ #
256
+
257
+ # And be sure to use new-style password hashing:
258
+
259
+ # http://dev.mysql.com/doc/refman/5.7/en/old-client.html
260
+
261
+ #
262
+
263
+ default: &default
264
+
265
+ adapter: mysql2
266
+
267
+ encoding: utf8
268
+
269
+ pool: 5
270
+
271
+ username: root
272
+
273
+ password:
274
+
275
+ socket: /tmp/mysql.sock
276
+
277
+
278
+
279
+ development:
280
+
281
+ <<: *default
282
+
283
+ database: MyApri_development
284
+
285
+
286
+
287
+ # Warning: The database defined as "test" will be erased and
288
+
289
+ # re-generated from your development database when you run "rake".
290
+
291
+ # Do not set this db to the same as development or production.
292
+
293
+ test:
294
+
295
+ <<: *default
296
+
297
+ database: MyApri_test
298
+
299
+
300
+
301
+ # As with config/secrets.yml, you never want to store sensitive information,
302
+
303
+ # like your database password, in your source code. If your source code is
304
+
305
+ # ever seen by anyone, they now have access to your database.
306
+
307
+ #
308
+
309
+ # Instead, provide the password as a unix environment variable when you boot
310
+
311
+ # the app. Read http://guides.rubyonrails.org/configuring.html#configuring-a-database
312
+
313
+ # for a full rundown on how to provide these environment variables in a
314
+
315
+ # production deployment.
316
+
317
+ #
318
+
319
+ # On Heroku and other platform providers, you may have a full connection URL
320
+
321
+ # available as an environment variable. For example:
322
+
323
+ #
324
+
325
+ # DATABASE_URL="mysql2://myuser:mypass@localhost/somedatabase"
326
+
327
+ #
328
+
329
+ # You can use this database configuration with:
330
+
331
+ #
332
+
333
+ # production:
334
+
335
+ # url: <%= ENV['DATABASE_URL'] %>
336
+
337
+ #
338
+
339
+ production:
340
+
341
+ <<: *default
342
+
343
+ database: MyApri_production
344
+
345
+ username: MyApri
346
+
347
+ password: <%= ENV['MYAPRI_DATABASE_PASSWORD'] %>
348
+
349
+ adapter: postgresql
350
+
351
+ encoding: unicode
352
+
353
+ pool: 5
354
+
355
+ ```

1

参考記事

2019/12/15 09:54

投稿

yakumo02
yakumo02

スコア103

test CHANGED
File without changes
test CHANGED
@@ -2,7 +2,9 @@
2
2
 
3
3
  初めて使うのでよくわかりません 何が原因なのでしょうか ご教授願います
4
4
 
5
+ 下記のサイトを参考にしました
5
6
 
7
+ https://qiita.com/kazukimatsumoto/items/a0daa7281a3948701c39
6
8
 
7
9
  ```
8
10