質問編集履歴

11

修正

2021/10/07 09:46

投稿

退会済みユーザー
test CHANGED
@@ -1 +1 @@
1
- cloud9 アプリ公開
1
+ cloud9 アプリ公開手順について
test CHANGED
File without changes

10

修正

2021/10/07 09:46

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -206,7 +206,7 @@
206
206
 
207
207
  remote: Using sinatra 2.0.8.1
208
208
 
209
- remote: Using refile 0.6.2 from https://github.com/manfe/refile.git (at master@46b4178)
209
+ remote: Using refile 0.6.2 from https://github.com/manfe/refile.git (at master@xxxx)
210
210
 
211
211
  remote: Using refile-mini_magick 0.2.0
212
212
 
@@ -312,13 +312,13 @@
312
312
 
313
313
  remote: Released v7
314
314
 
315
- remote: https://thawing-headland-80740.herokuapp.com/ deployed to Heroku
315
+ remote: https://thawing-headland-xxxxx.herokuapp.com/ deployed to Heroku
316
316
 
317
317
  remote:
318
318
 
319
319
  remote: Verifying deploy... done.
320
320
 
321
- To https://git.heroku.com/thawing-headland-80740.git
321
+ To https://git.heroku.com/thawing-headland-xxxxx0.git
322
322
 
323
323
  11d73e2..972c6b1 master -> master
324
324
 

9

修正

2021/10/07 09:45

投稿

退会済みユーザー
test CHANGED
@@ -1 +1 @@
1
- 修正cloud9 アプリ公開
1
+ cloud9 アプリ公開
test CHANGED
@@ -14,54 +14,322 @@
14
14
 
15
15
 
16
16
 
17
+ 最終的には、作成したアプリ画面は表示されず、
18
+
19
+ Heroku | Welcome to your new app!
20
+
17
- チュートリアルサイト
21
+ という表示画面が出ています。
18
-
22
+
23
+
24
+
19
- 「1.5.1Herokuセットアップ」部分
25
+ 以下が、設定最後コマンドを打った後の結果す。
20
-
21
- Gemファイルを追加するというのは、ローカルのGemファイルを
22
-
23
- 「リスト 1.13:追加や並び替えを行ったGemfile」に変更するという事であっていますか?
24
-
25
-
26
-
27
- Gemfile の gem 'sqlite3'を下記に変更しています。
28
26
 
29
27
  ```
30
28
 
31
- gem 'sqlite3', groups: %w(test development), require: false
32
-
33
- gem 'pg', groups: %w(production), require: false
29
+ $git push heroku master
30
+
31
+ Enumerating objects: 16, done.
32
+
33
+ Counting objects: 100% (16/16), done.
34
+
35
+ Compressing objects: 100% (10/10), done.
36
+
37
+ Writing objects: 100% (10/10), 925 bytes | 308.00 KiB/s, done.
38
+
39
+ Total 10 (delta 8), reused 0 (delta 0), pack-reused 0
40
+
41
+ remote: Compressing source files... done.
42
+
43
+ remote: Building source:
44
+
45
+ remote:
46
+
47
+ remote: -----> Building on the Heroku-20 stack
48
+
49
+ remote: -----> Using buildpack: heroku/ruby
50
+
51
+ remote: -----> Ruby app detected
52
+
53
+ remote: -----> Installing bundler 1.17.3
54
+
55
+ remote: -----> Removing BUNDLED WITH version in the Gemfile.lock
56
+
57
+ remote: -----> Compiling Ruby/Rails
58
+
59
+ remote: -----> Using Ruby version: ruby-2.7.4
60
+
61
+ remote: -----> Installing dependencies using bundler 1.17.3
62
+
63
+ remote: Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 BUNDLE_GLOBAL_PATH_APPENDS_RUBY_SCOPE=1 bundle install -j4
64
+
65
+ 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`.
66
+
67
+ remote: Using rake 13.0.6
68
+
69
+ remote: Using concurrent-ruby 1.1.9
70
+
71
+ remote: Using i18n 1.8.10
72
+
73
+ remote: Using minitest 5.14.4
74
+
75
+ remote: Using thread_safe 0.3.6
76
+
77
+ remote: Using tzinfo 1.2.9
78
+
79
+ remote: Using activesupport 5.1.7
80
+
81
+ remote: Using builder 3.2.4
82
+
83
+ remote: Using erubi 1.10.0
84
+
85
+ remote: Using mini_portile2 2.6.1
86
+
87
+ remote: Using racc 1.5.2
88
+
89
+ remote: Using nokogiri 1.12.5 (x86_64-linux)
90
+
91
+ remote: Using rails-dom-testing 2.0.3
92
+
93
+ remote: Using crass 1.0.6
94
+
95
+ remote: Using loofah 2.12.0
96
+
97
+ remote: Using rails-html-sanitizer 1.4.2
98
+
99
+ remote: Using actionview 5.1.7
100
+
101
+ remote: Using rack 2.2.3
102
+
103
+ remote: Using rack-test 1.1.0
104
+
105
+ remote: Using actionpack 5.1.7
106
+
107
+ remote: Using nio4r 2.5.8
108
+
109
+ remote: Using websocket-extensions 0.1.5
110
+
111
+ remote: Using websocket-driver 0.6.5
112
+
113
+ remote: Using actioncable 5.1.7
114
+
115
+ remote: Using globalid 0.5.2
116
+
117
+ remote: Using activejob 5.1.7
118
+
119
+ remote: Using mini_mime 1.1.1
120
+
121
+ remote: Using mail 2.7.1
122
+
123
+ remote: Using actionmailer 5.1.7
124
+
125
+ remote: Using activemodel 5.1.7
126
+
127
+ remote: Using arel 8.0.0
128
+
129
+ remote: Using activerecord 5.1.7
130
+
131
+ remote: Using bcrypt 3.1.16
132
+
133
+ remote: Using ffi 1.15.4
134
+
135
+ remote: Using sassc 2.4.0
136
+
137
+ remote: Using bulma-rails 0.9.1
138
+
139
+ remote: Using bundler 2.1.4
140
+
141
+ remote: Using coffee-script-source 1.12.2
142
+
143
+ remote: Using execjs 2.8.1
144
+
145
+ remote: Using coffee-script 2.4.1
146
+
147
+ remote: Using method_source 1.0.0
148
+
149
+ remote: Using thor 1.1.0
150
+
151
+ remote: Using railties 5.1.7
152
+
153
+ remote: Using coffee-rails 4.2.2
154
+
155
+ remote: Using orm_adapter 0.5.0
156
+
157
+ remote: Using responders 3.0.1
158
+
159
+ remote: Using warden 1.2.9
160
+
161
+ remote: Using devise 4.8.0
162
+
163
+ remote: Using unf_ext 0.0.8
164
+
165
+ remote: Using unf 0.1.4
166
+
167
+ remote: Using domain_name 0.5.20190701
168
+
169
+ remote: Using http-accept 1.7.0
170
+
171
+ remote: Using http-cookie 1.0.4
172
+
173
+ remote: Using jbuilder 2.11.2
174
+
175
+ remote: Using mime-types-data 3.2021.0901
176
+
177
+ remote: Using mime-types 3.3.1
178
+
179
+ remote: Using mini_magick 4.11.0
180
+
181
+ remote: Using ruby2_keywords 0.0.5
182
+
183
+ remote: Using mustermann 1.1.1
184
+
185
+ remote: Using netrc 0.11.0
186
+
187
+ remote: Using pg 1.2.3
188
+
189
+ remote: Using puma 3.12.6
190
+
191
+ remote: Using rack-protection 2.0.8.1
192
+
193
+ remote: Using sprockets 3.7.2
194
+
195
+ remote: Using sprockets-rails 3.2.2
196
+
197
+ remote: Using rails 5.1.7
198
+
199
+ remote: Using rb-fsevent 0.11.0
200
+
201
+ remote: Using rb-inotify 0.10.1
202
+
203
+ remote: Using rest-client 2.1.0
204
+
205
+ remote: Using tilt 2.0.10
206
+
207
+ remote: Using sinatra 2.0.8.1
208
+
209
+ remote: Using refile 0.6.2 from https://github.com/manfe/refile.git (at master@46b4178)
210
+
211
+ remote: Using refile-mini_magick 0.2.0
212
+
213
+ remote: Using sass-listen 4.0.0
214
+
215
+ remote: Using sass 3.7.4
216
+
217
+ remote: Using sass-rails 5.0.7
218
+
219
+ remote: Using turbolinks-source 5.2.0
220
+
221
+ remote: Using turbolinks 5.2.1
222
+
223
+ remote: Using uglifier 4.2.0
224
+
225
+ remote: Bundle complete! 21 Gemfile dependencies, 79 gems now installed.
226
+
227
+ remote: Gems in the groups development and test were not installed.
228
+
229
+ remote: Bundled gems are installed into `./vendor/bundle`
230
+
231
+ remote: Removing bundler (1.17.3)
232
+
233
+ remote: Bundle completed (0.56s)
234
+
235
+ remote: Cleaning up the bundler cache.
236
+
237
+ remote: -----> Installing node-v12.16.2-linux-x64
238
+
239
+ remote: -----> Detecting rake tasks
240
+
241
+ remote: -----> Preparing app for Rails asset pipeline
242
+
243
+ remote: Running: rake assets:precompile
244
+
245
+ remote: Yarn executable was not detected in the system.
246
+
247
+ remote: Download Yarn at https://yarnpkg.com/en/docs/install
248
+
249
+ remote: Asset precompilation completed (2.77s)
250
+
251
+ remote: Cleaning assets
252
+
253
+ remote: Running: rake assets:clean
254
+
255
+ remote: -----> Detecting rails configuration
256
+
257
+ remote:
258
+
259
+ remote: ###### WARNING:
260
+
261
+ remote:
262
+
263
+ remote: You have not declared a Ruby version in your Gemfile.
264
+
265
+ remote:
266
+
267
+ remote: To declare a Ruby version add this line to your Gemfile:
268
+
269
+ remote:
270
+
271
+ remote: ```
272
+
273
+ remote: ruby "2.7.4"
274
+
275
+ remote: ```
276
+
277
+ remote:
278
+
279
+ remote: For more information see:
280
+
281
+ remote: https://devcenter.heroku.com/articles/ruby-versions
282
+
283
+ remote:
284
+
285
+ remote: ###### WARNING:
286
+
287
+ remote:
288
+
289
+ remote: No Procfile detected, using the default web server.
290
+
291
+ remote: We recommend explicitly declaring how to boot your server process via a Procfile.
292
+
293
+ remote: https://devcenter.heroku.com/articles/ruby-default-web-server
294
+
295
+ remote:
296
+
297
+ remote:
298
+
299
+ remote: -----> Discovering process types
300
+
301
+ remote: Procfile declares types -> (none)
302
+
303
+ remote: Default types for buildpack -> console, rake, web
304
+
305
+ remote:
306
+
307
+ remote: -----> Compressing...
308
+
309
+ remote: Done: 75.1M
310
+
311
+ remote: -----> Launching...
312
+
313
+ remote: Released v7
314
+
315
+ remote: https://thawing-headland-80740.herokuapp.com/ deployed to Heroku
316
+
317
+ remote:
318
+
319
+ remote: Verifying deploy... done.
320
+
321
+ To https://git.heroku.com/thawing-headland-80740.git
322
+
323
+ 11d73e2..972c6b1 master -> master
34
324
 
35
325
  ```
36
326
 
37
327
 
38
328
 
39
- $ git push heroku master
329
+
40
-
41
- 最終的に上記コマンドを打った後、以下のエラーが出てしまいました。
330
+
42
-
43
-
44
-
45
- ```
331
+
46
-
47
- remote: !
332
+
48
-
49
- remote: ! Failed to install gems via Bundler.
50
-
51
- remote: ! Detected sqlite3 gem which is not supported on Heroku:
52
-
53
- remote: ! https://devcenter.heroku.com/articles/sqlite3
54
-
55
- remote: !
56
-
57
- ```
58
-
59
-
60
-
61
-
62
-
63
-
64
-
65
- Gemfileの部分が対応していないようなのですが、どのように変更アップしたら良いでしょうか?
333
+ どのように変更をするべきでしょうか?
66
334
 
67
335
  ご教授お願いいたします。

8

修正

2021/10/07 09:44

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -21,6 +21,18 @@
21
21
  Gemファイルを追加するというのは、ローカルのGemファイルを
22
22
 
23
23
  「リスト 1.13:追加や並び替えを行ったGemfile」に変更するという事であっていますか?
24
+
25
+
26
+
27
+ Gemfile の gem 'sqlite3'を下記に変更しています。
28
+
29
+ ```
30
+
31
+ gem 'sqlite3', groups: %w(test development), require: false
32
+
33
+ gem 'pg', groups: %w(production), require: false
34
+
35
+ ```
24
36
 
25
37
 
26
38
 
@@ -48,6 +60,8 @@
48
60
 
49
61
 
50
62
 
63
+
64
+
51
65
  Gemfileの部分が対応していないようなのですが、どのように変更アップしたら良いでしょうか?
52
66
 
53
67
  ご教授お願いいたします。

7

修正

2021/10/07 07:28

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -32,16 +32,22 @@
32
32
 
33
33
  ```
34
34
 
35
- To https://git.heroku.com/thawing-headland-80740.git
35
+ remote: !
36
36
 
37
- ! [remote rejected] master -> master (pre-receive hook declined)
37
+ remote: ! Failed to install gems via Bundler.
38
38
 
39
+ remote: ! Detected sqlite3 gem which is not supported on Heroku:
40
+
39
- error: failed to push some refs to 'https://git.heroku.com/thawing-headland-xxxxx.git'
41
+ remote: ! https://devcenter.heroku.com/articles/sqlite3
42
+
43
+ remote: !
40
44
 
41
45
  ```
42
46
 
43
47
 
44
48
 
49
+
50
+
45
- の部分が間違えていると考えれるでしょうか?
51
+ Gemfileの部分が対応していないようなのですが、どのように変更アップした良いでしょうか?
46
52
 
47
53
  ご教授お願いいたします。

6

修正

2021/10/07 07:03

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -20,16 +20,28 @@
20
20
 
21
21
  Gemファイルを追加するというのは、ローカルのGemファイルを
22
22
 
23
- 「リスト 1.13:追加や並び替えを行ったGemfile」に変更するという事でしょうか?
23
+ 「リスト 1.13:追加や並び替えを行ったGemfile」に変更するという事であっていますか?
24
24
 
25
25
 
26
26
 
27
+ $ git push heroku master
28
+
29
+ 最終的に上記コマンドを打った後、以下のエラーが出てしまいました。
30
+
31
+
32
+
27
- ```html
33
+ ```
28
34
 
29
35
  To https://git.heroku.com/thawing-headland-80740.git
30
36
 
31
37
  ! [remote rejected] master -> master (pre-receive hook declined)
32
38
 
33
- error: failed to push some refs to 'https://git.heroku.com/thawing-headland-80740.git'
39
+ error: failed to push some refs to 'https://git.heroku.com/thawing-headland-xxxxx.git'
34
40
 
35
41
  ```
42
+
43
+
44
+
45
+ どの部分が間違えていると考えられるでしょうか?
46
+
47
+ ご教授お願いいたします。

5

変更

2021/10/07 06:54

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -21,3 +21,15 @@
21
21
  Gemファイルを追加するというのは、ローカルのGemファイルを
22
22
 
23
23
  「リスト 1.13:追加や並び替えを行ったGemfile」に変更するという事でしょうか?
24
+
25
+
26
+
27
+ ```html
28
+
29
+ To https://git.heroku.com/thawing-headland-80740.git
30
+
31
+ ! [remote rejected] master -> master (pre-receive hook declined)
32
+
33
+ error: failed to push some refs to 'https://git.heroku.com/thawing-headland-80740.git'
34
+
35
+ ```

4

修正

2021/10/07 06:51

投稿

退会済みユーザー
test CHANGED
@@ -1 +1 @@
1
- cloud9 アプリ公開
1
+ 修正cloud9 アプリ公開
test CHANGED
@@ -18,10 +18,6 @@
18
18
 
19
19
  「1.5.1Herokuのセットアップ」の部分で、
20
20
 
21
- Gemファイルを追加するというのがわからないです。
21
+ Gemファイルを追加するというのは、ローカルのGemファイルを
22
22
 
23
-
24
-
25
- ローカルのGemファイルを
26
-
27
- 「リスト 1.13:追加や並び替えを行ったGemfile」に変更していのでしょうか?
23
+ 「リスト 1.13:追加や並び替えを行ったGemfile」に変更するとう事でしょうか?

3

修正

2021/10/07 06:48

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -14,44 +14,14 @@
14
14
 
15
15
 
16
16
 
17
- 今回、実行したコマンドです。
17
+ チュートリアルサイトの
18
+
19
+ 「1.5.1Herokuのセットアップ」の部分で、
20
+
21
+ Gemファイルを追加するというのがわからないです。
18
22
 
19
23
 
20
24
 
21
- $ git init
25
+ ローカルのGemファイルを
22
26
 
23
- $ git add -A
24
-
25
- $ git status
26
-
27
- $ git commit -m "Initialize repository"
28
-
29
- $ git log
30
-
31
- $ git remote add origin git@bitbucket.org:xxxxx/xxxxx.git
32
-
33
- $ git push -u origin master
34
-
35
- Warning: Permanently added 'bitbucket.org,104.192.141.1' (RSA) to the list of known hosts.
36
-
37
- Permission denied (publickey).
38
-
39
- fatal: Could not read from remote repository.
40
-
41
-
42
-
43
- Please make sure you have the correct access rights
44
-
45
- and the repository exists.
46
-
47
-
48
-
49
- bitbucketの方では、リポジトリを作成し、ファイルアップはされておらず、ローカルの Git リポジトリを Bitbucket に移行しましょうというページのままです。
50
-
51
-
52
-
53
- 具体的に何の設定が必要でしょうか?
54
-
55
- もしくは、チュートアルサイのどの部分から設定すれば良いか教えていただけないでしょうか?
27
+ 1.13:追加や並び替を行ったGemfile」に変更していいでしょうか?
56
-
57
- よろしくお願いいたします。

2

修正

2021/10/07 05:35

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -16,6 +16,8 @@
16
16
 
17
17
  今回、実行したコマンドです。
18
18
 
19
+
20
+
19
21
  $ git init
20
22
 
21
23
  $ git add -A
@@ -30,6 +32,18 @@
30
32
 
31
33
  $ git push -u origin master
32
34
 
35
+ Warning: Permanently added 'bitbucket.org,104.192.141.1' (RSA) to the list of known hosts.
36
+
37
+ Permission denied (publickey).
38
+
39
+ fatal: Could not read from remote repository.
40
+
41
+
42
+
43
+ Please make sure you have the correct access rights
44
+
45
+ and the repository exists.
46
+
33
47
 
34
48
 
35
49
  bitbucketの方では、リポジトリを作成し、ファイルアップはされておらず、ローカルの Git リポジトリを Bitbucket に移行しましょうというページのままです。

1

追加

2021/10/07 05:05

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -14,15 +14,25 @@
14
14
 
15
15
 
16
16
 
17
- 今回、
17
+ 今回、実行したコマンドです。
18
18
 
19
- Bitbucketへのリポジトリ追加とリポジトリへのプッシュを行ったのですが、
19
+ $ git init
20
20
 
21
- create mode 100644 .gitignore
21
+ $ git add -A
22
22
 
23
- このような記述で、ファイル名がずらっと出力されました。
23
+ $ git status
24
24
 
25
+ $ git commit -m "Initialize repository"
26
+
27
+ $ git log
28
+
29
+ $ git remote add origin git@bitbucket.org:xxxxx/xxxxx.git
30
+
31
+ $ git push -u origin master
32
+
33
+
34
+
25
- bitbucketの方では、ファイルアップはされておらず、ローカルの Git リポジトリを Bitbucket に移行しましょうというページのままです。
35
+ bitbucketの方では、リポジトリを作成し、ファイルアップはされておらず、ローカルの Git リポジトリを Bitbucket に移行しましょうというページのままです。
26
36
 
27
37
 
28
38