質問編集履歴
11
修正
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
cloud9 アプリ公開
|
1
|
+
cloud9 アプリ公開手順について
|
body
CHANGED
File without changes
|
10
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -102,7 +102,7 @@
|
|
102
102
|
remote: Using rest-client 2.1.0
|
103
103
|
remote: Using tilt 2.0.10
|
104
104
|
remote: Using sinatra 2.0.8.1
|
105
|
-
remote: Using refile 0.6.2 from https://github.com/manfe/refile.git (at master@
|
105
|
+
remote: Using refile 0.6.2 from https://github.com/manfe/refile.git (at master@xxxx)
|
106
106
|
remote: Using refile-mini_magick 0.2.0
|
107
107
|
remote: Using sass-listen 4.0.0
|
108
108
|
remote: Using sass 3.7.4
|
@@ -155,10 +155,10 @@
|
|
155
155
|
remote: Done: 75.1M
|
156
156
|
remote: -----> Launching...
|
157
157
|
remote: Released v7
|
158
|
-
remote: https://thawing-headland-
|
158
|
+
remote: https://thawing-headland-xxxxx.herokuapp.com/ deployed to Heroku
|
159
159
|
remote:
|
160
160
|
remote: Verifying deploy... done.
|
161
|
-
To https://git.heroku.com/thawing-headland-
|
161
|
+
To https://git.heroku.com/thawing-headland-xxxxx0.git
|
162
162
|
11d73e2..972c6b1 master -> master
|
163
163
|
```
|
164
164
|
|
9
修正
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
|
1
|
+
cloud9 アプリ公開
|
body
CHANGED
@@ -6,29 +6,163 @@
|
|
6
6
|
cloud9で新たに作成したアプリを、上記サイトの手順で公開する場合に、
|
7
7
|
理解が足りず、うまくできずに詰まっています。
|
8
8
|
|
9
|
-
チュートリアルサイトの
|
10
|
-
|
9
|
+
最終的には、作成したアプリ画面は表示されず、
|
11
|
-
|
10
|
+
Heroku | Welcome to your new app!
|
12
|
-
|
11
|
+
という表示の画面が出ています。
|
13
12
|
|
14
|
-
|
13
|
+
以下が、設定の最後のコマンドを打った後の結果です。
|
15
14
|
```
|
16
|
-
|
17
|
-
|
15
|
+
$git push heroku master
|
16
|
+
Enumerating objects: 16, done.
|
17
|
+
Counting objects: 100% (16/16), done.
|
18
|
+
Compressing objects: 100% (10/10), done.
|
19
|
+
Writing objects: 100% (10/10), 925 bytes | 308.00 KiB/s, done.
|
20
|
+
Total 10 (delta 8), reused 0 (delta 0), pack-reused 0
|
21
|
+
remote: Compressing source files... done.
|
22
|
+
remote: Building source:
|
23
|
+
remote:
|
24
|
+
remote: -----> Building on the Heroku-20 stack
|
25
|
+
remote: -----> Using buildpack: heroku/ruby
|
26
|
+
remote: -----> Ruby app detected
|
27
|
+
remote: -----> Installing bundler 1.17.3
|
28
|
+
remote: -----> Removing BUNDLED WITH version in the Gemfile.lock
|
29
|
+
remote: -----> Compiling Ruby/Rails
|
30
|
+
remote: -----> Using Ruby version: ruby-2.7.4
|
31
|
+
remote: -----> Installing dependencies using bundler 1.17.3
|
32
|
+
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
|
33
|
+
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`.
|
34
|
+
remote: Using rake 13.0.6
|
35
|
+
remote: Using concurrent-ruby 1.1.9
|
36
|
+
remote: Using i18n 1.8.10
|
37
|
+
remote: Using minitest 5.14.4
|
38
|
+
remote: Using thread_safe 0.3.6
|
39
|
+
remote: Using tzinfo 1.2.9
|
40
|
+
remote: Using activesupport 5.1.7
|
41
|
+
remote: Using builder 3.2.4
|
42
|
+
remote: Using erubi 1.10.0
|
43
|
+
remote: Using mini_portile2 2.6.1
|
44
|
+
remote: Using racc 1.5.2
|
45
|
+
remote: Using nokogiri 1.12.5 (x86_64-linux)
|
46
|
+
remote: Using rails-dom-testing 2.0.3
|
47
|
+
remote: Using crass 1.0.6
|
48
|
+
remote: Using loofah 2.12.0
|
49
|
+
remote: Using rails-html-sanitizer 1.4.2
|
50
|
+
remote: Using actionview 5.1.7
|
51
|
+
remote: Using rack 2.2.3
|
52
|
+
remote: Using rack-test 1.1.0
|
53
|
+
remote: Using actionpack 5.1.7
|
54
|
+
remote: Using nio4r 2.5.8
|
55
|
+
remote: Using websocket-extensions 0.1.5
|
56
|
+
remote: Using websocket-driver 0.6.5
|
57
|
+
remote: Using actioncable 5.1.7
|
58
|
+
remote: Using globalid 0.5.2
|
59
|
+
remote: Using activejob 5.1.7
|
60
|
+
remote: Using mini_mime 1.1.1
|
61
|
+
remote: Using mail 2.7.1
|
62
|
+
remote: Using actionmailer 5.1.7
|
63
|
+
remote: Using activemodel 5.1.7
|
64
|
+
remote: Using arel 8.0.0
|
65
|
+
remote: Using activerecord 5.1.7
|
66
|
+
remote: Using bcrypt 3.1.16
|
67
|
+
remote: Using ffi 1.15.4
|
68
|
+
remote: Using sassc 2.4.0
|
69
|
+
remote: Using bulma-rails 0.9.1
|
70
|
+
remote: Using bundler 2.1.4
|
71
|
+
remote: Using coffee-script-source 1.12.2
|
72
|
+
remote: Using execjs 2.8.1
|
73
|
+
remote: Using coffee-script 2.4.1
|
74
|
+
remote: Using method_source 1.0.0
|
75
|
+
remote: Using thor 1.1.0
|
76
|
+
remote: Using railties 5.1.7
|
77
|
+
remote: Using coffee-rails 4.2.2
|
78
|
+
remote: Using orm_adapter 0.5.0
|
79
|
+
remote: Using responders 3.0.1
|
80
|
+
remote: Using warden 1.2.9
|
81
|
+
remote: Using devise 4.8.0
|
82
|
+
remote: Using unf_ext 0.0.8
|
83
|
+
remote: Using unf 0.1.4
|
84
|
+
remote: Using domain_name 0.5.20190701
|
85
|
+
remote: Using http-accept 1.7.0
|
86
|
+
remote: Using http-cookie 1.0.4
|
87
|
+
remote: Using jbuilder 2.11.2
|
88
|
+
remote: Using mime-types-data 3.2021.0901
|
89
|
+
remote: Using mime-types 3.3.1
|
90
|
+
remote: Using mini_magick 4.11.0
|
91
|
+
remote: Using ruby2_keywords 0.0.5
|
92
|
+
remote: Using mustermann 1.1.1
|
93
|
+
remote: Using netrc 0.11.0
|
94
|
+
remote: Using pg 1.2.3
|
95
|
+
remote: Using puma 3.12.6
|
96
|
+
remote: Using rack-protection 2.0.8.1
|
97
|
+
remote: Using sprockets 3.7.2
|
98
|
+
remote: Using sprockets-rails 3.2.2
|
99
|
+
remote: Using rails 5.1.7
|
100
|
+
remote: Using rb-fsevent 0.11.0
|
101
|
+
remote: Using rb-inotify 0.10.1
|
102
|
+
remote: Using rest-client 2.1.0
|
103
|
+
remote: Using tilt 2.0.10
|
104
|
+
remote: Using sinatra 2.0.8.1
|
105
|
+
remote: Using refile 0.6.2 from https://github.com/manfe/refile.git (at master@46b4178)
|
106
|
+
remote: Using refile-mini_magick 0.2.0
|
107
|
+
remote: Using sass-listen 4.0.0
|
108
|
+
remote: Using sass 3.7.4
|
109
|
+
remote: Using sass-rails 5.0.7
|
110
|
+
remote: Using turbolinks-source 5.2.0
|
111
|
+
remote: Using turbolinks 5.2.1
|
112
|
+
remote: Using uglifier 4.2.0
|
113
|
+
remote: Bundle complete! 21 Gemfile dependencies, 79 gems now installed.
|
114
|
+
remote: Gems in the groups development and test were not installed.
|
115
|
+
remote: Bundled gems are installed into `./vendor/bundle`
|
116
|
+
remote: Removing bundler (1.17.3)
|
117
|
+
remote: Bundle completed (0.56s)
|
118
|
+
remote: Cleaning up the bundler cache.
|
119
|
+
remote: -----> Installing node-v12.16.2-linux-x64
|
120
|
+
remote: -----> Detecting rake tasks
|
121
|
+
remote: -----> Preparing app for Rails asset pipeline
|
122
|
+
remote: Running: rake assets:precompile
|
123
|
+
remote: Yarn executable was not detected in the system.
|
124
|
+
remote: Download Yarn at https://yarnpkg.com/en/docs/install
|
125
|
+
remote: Asset precompilation completed (2.77s)
|
126
|
+
remote: Cleaning assets
|
127
|
+
remote: Running: rake assets:clean
|
128
|
+
remote: -----> Detecting rails configuration
|
129
|
+
remote:
|
130
|
+
remote: ###### WARNING:
|
131
|
+
remote:
|
132
|
+
remote: You have not declared a Ruby version in your Gemfile.
|
133
|
+
remote:
|
134
|
+
remote: To declare a Ruby version add this line to your Gemfile:
|
135
|
+
remote:
|
136
|
+
remote: ```
|
137
|
+
remote: ruby "2.7.4"
|
138
|
+
remote: ```
|
139
|
+
remote:
|
140
|
+
remote: For more information see:
|
141
|
+
remote: https://devcenter.heroku.com/articles/ruby-versions
|
142
|
+
remote:
|
143
|
+
remote: ###### WARNING:
|
144
|
+
remote:
|
145
|
+
remote: No Procfile detected, using the default web server.
|
146
|
+
remote: We recommend explicitly declaring how to boot your server process via a Procfile.
|
147
|
+
remote: https://devcenter.heroku.com/articles/ruby-default-web-server
|
148
|
+
remote:
|
149
|
+
remote:
|
150
|
+
remote: -----> Discovering process types
|
151
|
+
remote: Procfile declares types -> (none)
|
152
|
+
remote: Default types for buildpack -> console, rake, web
|
153
|
+
remote:
|
154
|
+
remote: -----> Compressing...
|
155
|
+
remote: Done: 75.1M
|
156
|
+
remote: -----> Launching...
|
157
|
+
remote: Released v7
|
158
|
+
remote: https://thawing-headland-80740.herokuapp.com/ deployed to Heroku
|
159
|
+
remote:
|
160
|
+
remote: Verifying deploy... done.
|
161
|
+
To https://git.heroku.com/thawing-headland-80740.git
|
162
|
+
11d73e2..972c6b1 master -> master
|
18
163
|
```
|
19
164
|
|
20
|
-
$ git push heroku master
|
21
|
-
最終的に上記コマンドを打った後、以下のエラーが出てしまいました。
|
22
165
|
|
23
|
-
```
|
24
|
-
remote: !
|
25
|
-
remote: ! Failed to install gems via Bundler.
|
26
|
-
remote: ! Detected sqlite3 gem which is not supported on Heroku:
|
27
|
-
remote: ! https://devcenter.heroku.com/articles/sqlite3
|
28
|
-
remote: !
|
29
|
-
```
|
30
166
|
|
31
|
-
|
32
|
-
|
33
|
-
|
167
|
+
どのように変更をするべきでしょうか?
|
34
168
|
ご教授お願いいたします。
|
8
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -11,6 +11,12 @@
|
|
11
11
|
Gemファイルを追加するというのは、ローカルのGemファイルを
|
12
12
|
「リスト 1.13:追加や並び替えを行ったGemfile」に変更するという事であっていますか?
|
13
13
|
|
14
|
+
Gemfile の gem 'sqlite3'を下記に変更しています。
|
15
|
+
```
|
16
|
+
gem 'sqlite3', groups: %w(test development), require: false
|
17
|
+
gem 'pg', groups: %w(production), require: false
|
18
|
+
```
|
19
|
+
|
14
20
|
$ git push heroku master
|
15
21
|
最終的に上記コマンドを打った後、以下のエラーが出てしまいました。
|
16
22
|
|
@@ -23,5 +29,6 @@
|
|
23
29
|
```
|
24
30
|
|
25
31
|
|
32
|
+
|
26
33
|
Gemfileの部分が対応していないようなのですが、どのように変更アップしたら良いでしょうか?
|
27
34
|
ご教授お願いいたします。
|
7
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -15,10 +15,13 @@
|
|
15
15
|
最終的に上記コマンドを打った後、以下のエラーが出てしまいました。
|
16
16
|
|
17
17
|
```
|
18
|
+
remote: !
|
19
|
+
remote: ! Failed to install gems via Bundler.
|
20
|
+
remote: ! Detected sqlite3 gem which is not supported on Heroku:
|
18
|
-
|
21
|
+
remote: ! https://devcenter.heroku.com/articles/sqlite3
|
19
|
-
|
22
|
+
remote: !
|
20
|
-
error: failed to push some refs to 'https://git.heroku.com/thawing-headland-xxxxx.git'
|
21
23
|
```
|
22
24
|
|
25
|
+
|
23
|
-
|
26
|
+
Gemfileの部分が対応していないようなのですが、どのように変更アップしたら良いでしょうか?
|
24
27
|
ご教授お願いいたします。
|
6
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -9,10 +9,16 @@
|
|
9
9
|
チュートリアルサイトの
|
10
10
|
「1.5.1Herokuのセットアップ」の部分で、
|
11
11
|
Gemファイルを追加するというのは、ローカルのGemファイルを
|
12
|
-
「リスト 1.13:追加や並び替えを行ったGemfile」に変更するという事で
|
12
|
+
「リスト 1.13:追加や並び替えを行ったGemfile」に変更するという事であっていますか?
|
13
13
|
|
14
|
+
$ git push heroku master
|
15
|
+
最終的に上記コマンドを打った後、以下のエラーが出てしまいました。
|
16
|
+
|
14
|
-
```
|
17
|
+
```
|
15
18
|
To https://git.heroku.com/thawing-headland-80740.git
|
16
19
|
! [remote rejected] master -> master (pre-receive hook declined)
|
17
|
-
error: failed to push some refs to 'https://git.heroku.com/thawing-headland-
|
20
|
+
error: failed to push some refs to 'https://git.heroku.com/thawing-headland-xxxxx.git'
|
18
|
-
```
|
21
|
+
```
|
22
|
+
|
23
|
+
どの部分が間違えていると考えられるでしょうか?
|
24
|
+
ご教授お願いいたします。
|
5
変更
title
CHANGED
File without changes
|
body
CHANGED
@@ -9,4 +9,10 @@
|
|
9
9
|
チュートリアルサイトの
|
10
10
|
「1.5.1Herokuのセットアップ」の部分で、
|
11
11
|
Gemファイルを追加するというのは、ローカルのGemファイルを
|
12
|
-
「リスト 1.13:追加や並び替えを行ったGemfile」に変更するという事でしょうか?
|
12
|
+
「リスト 1.13:追加や並び替えを行ったGemfile」に変更するという事でしょうか?
|
13
|
+
|
14
|
+
```html
|
15
|
+
To https://git.heroku.com/thawing-headland-80740.git
|
16
|
+
! [remote rejected] master -> master (pre-receive hook declined)
|
17
|
+
error: failed to push some refs to 'https://git.heroku.com/thawing-headland-80740.git'
|
18
|
+
```
|
4
修正
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
cloud9 アプリ公開
|
1
|
+
修正cloud9 アプリ公開
|
body
CHANGED
@@ -8,7 +8,5 @@
|
|
8
8
|
|
9
9
|
チュートリアルサイトの
|
10
10
|
「1.5.1Herokuのセットアップ」の部分で、
|
11
|
-
Gemファイルを追加するというの
|
11
|
+
Gemファイルを追加するというのは、ローカルのGemファイルを
|
12
|
-
|
13
|
-
ローカルのGemファイルを
|
14
|
-
「リスト 1.13:追加や並び替えを行ったGemfile」に変更
|
12
|
+
「リスト 1.13:追加や並び替えを行ったGemfile」に変更するという事でしょうか?
|
3
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -6,24 +6,9 @@
|
|
6
6
|
cloud9で新たに作成したアプリを、上記サイトの手順で公開する場合に、
|
7
7
|
理解が足りず、うまくできずに詰まっています。
|
8
8
|
|
9
|
-
|
9
|
+
チュートリアルサイトの
|
10
|
+
「1.5.1Herokuのセットアップ」の部分で、
|
11
|
+
Gemファイルを追加するというのがわからないです。
|
10
12
|
|
11
|
-
$ git init
|
12
|
-
|
13
|
+
ローカルのGemファイルを
|
13
|
-
$ git status
|
14
|
-
$ git commit -m "Initialize repository"
|
15
|
-
$ git log
|
16
|
-
$ git remote add origin git@bitbucket.org:xxxxx/xxxxx.git
|
17
|
-
$ git push -u origin master
|
18
|
-
Warning: Permanently added 'bitbucket.org,104.192.141.1' (RSA) to the list of known hosts.
|
19
|
-
Permission denied (publickey).
|
20
|
-
fatal: Could not read from remote repository.
|
21
|
-
|
22
|
-
Please make sure you have the correct access rights
|
23
|
-
and the repository exists.
|
24
|
-
|
25
|
-
bitbucketの方では、リポジトリを作成し、ファイルアップはされておらず、ローカルの Git リポジトリを Bitbucket に移行しましょうというページのままです。
|
26
|
-
|
27
|
-
具体的に何の設定が必要でしょうか?
|
28
|
-
|
14
|
+
「リスト 1.13:追加や並び替えを行ったGemfile」に変更していいのでしょうか?
|
29
|
-
よろしくお願いいたします。
|
2
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -7,6 +7,7 @@
|
|
7
7
|
理解が足りず、うまくできずに詰まっています。
|
8
8
|
|
9
9
|
今回、実行したコマンドです。
|
10
|
+
|
10
11
|
$ git init
|
11
12
|
$ git add -A
|
12
13
|
$ git status
|
@@ -14,7 +15,13 @@
|
|
14
15
|
$ git log
|
15
16
|
$ git remote add origin git@bitbucket.org:xxxxx/xxxxx.git
|
16
17
|
$ git push -u origin master
|
18
|
+
Warning: Permanently added 'bitbucket.org,104.192.141.1' (RSA) to the list of known hosts.
|
19
|
+
Permission denied (publickey).
|
20
|
+
fatal: Could not read from remote repository.
|
17
21
|
|
22
|
+
Please make sure you have the correct access rights
|
23
|
+
and the repository exists.
|
24
|
+
|
18
25
|
bitbucketの方では、リポジトリを作成し、ファイルアップはされておらず、ローカルの Git リポジトリを Bitbucket に移行しましょうというページのままです。
|
19
26
|
|
20
27
|
具体的に何の設定が必要でしょうか?
|
1
追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -6,12 +6,17 @@
|
|
6
6
|
cloud9で新たに作成したアプリを、上記サイトの手順で公開する場合に、
|
7
7
|
理解が足りず、うまくできずに詰まっています。
|
8
8
|
|
9
|
-
今回、
|
9
|
+
今回、実行したコマンドです。
|
10
|
+
$ git init
|
11
|
+
$ git add -A
|
12
|
+
$ git status
|
10
|
-
|
13
|
+
$ git commit -m "Initialize repository"
|
14
|
+
$ git log
|
15
|
+
$ git remote add origin git@bitbucket.org:xxxxx/xxxxx.git
|
11
|
-
|
16
|
+
$ git push -u origin master
|
12
|
-
このような記述で、ファイル名がずらっと出力されました。
|
13
|
-
bitbucketの方では、ファイルアップはされておらず、ローカルの Git リポジトリを Bitbucket に移行しましょうというページのままです。
|
14
17
|
|
18
|
+
bitbucketの方では、リポジトリを作成し、ファイルアップはされておらず、ローカルの Git リポジトリを Bitbucket に移行しましょうというページのままです。
|
19
|
+
|
15
20
|
具体的に何の設定が必要でしょうか?
|
16
21
|
もしくは、チュートリアルサイトのどの部分から設定すれば良いか教えていただけないでしょうか?
|
17
22
|
よろしくお願いいたします。
|