質問編集履歴
4
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
herokuに
|
1
|
+
herokuに作ったアプリがデプロイできない
|
test
CHANGED
File without changes
|
3
文章内容の変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -57,3 +57,159 @@
|
|
57
57
|
デプロイという作業が上手く出来ていないようなのですが、どうしたらいいのかが分かりません。
|
58
58
|
|
59
59
|
どなたか教えていただけると幸いです…。
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
追記:
|
64
|
+
|
65
|
+
画像が添付できなかったため、長文ですが、手入力で失礼致します。
|
66
|
+
|
67
|
+
エラー文は
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
remote: Compressing source files... done.
|
72
|
+
|
73
|
+
remote: Building source:
|
74
|
+
|
75
|
+
remote:
|
76
|
+
|
77
|
+
remote: -----> Node.js app detected
|
78
|
+
|
79
|
+
remote:
|
80
|
+
|
81
|
+
remote: -----> Creating runtime environment
|
82
|
+
|
83
|
+
remote:
|
84
|
+
|
85
|
+
remote: NPM_CONFIG_LOGLEVEL=error
|
86
|
+
|
87
|
+
remote: NPM_CONFIG_PRODUCTION=true
|
88
|
+
|
89
|
+
remote: NODE_ENV=production
|
90
|
+
|
91
|
+
remote: NODE_MODULES_CACHE=true
|
92
|
+
|
93
|
+
remote:
|
94
|
+
|
95
|
+
remote: -----> Installing binaries
|
96
|
+
|
97
|
+
remote: engines.node (package.json): unspecified
|
98
|
+
|
99
|
+
remote: engines.npm (package.json): unspecified (use default)
|
100
|
+
|
101
|
+
remote:
|
102
|
+
|
103
|
+
remote: Resolving node version (latest stable) via sember.io...
|
104
|
+
|
105
|
+
remote: Downloading and installing node 5.10.0...
|
106
|
+
|
107
|
+
remote: Using default npm version: 3.8.3
|
108
|
+
|
109
|
+
remote:
|
110
|
+
|
111
|
+
remote: -----> Restoring cache
|
112
|
+
|
113
|
+
remote: Skipping cache restore (new runtime signature)
|
114
|
+
|
115
|
+
remote:
|
116
|
+
|
117
|
+
remote:-----> Building dependencies
|
118
|
+
|
119
|
+
remote: Pruning any extraneous modules
|
120
|
+
|
121
|
+
remote: npm ERR! Linux 3.13.0-79-generic
|
122
|
+
|
123
|
+
remote: npm ERR! argv "/tmp/build_2d60f87c237a688f98b4965fd1219aec/.heroku/node/bin/node" "/tmp/build_2d60f87c237a688f98b4965fd1219aec/.npmrc"
|
124
|
+
|
125
|
+
remote: npm ERR! node v5.10.0
|
126
|
+
|
127
|
+
remote: npm ERR! npm v3.8.3
|
128
|
+
|
129
|
+
remote:
|
130
|
+
|
131
|
+
remote: npm ERR! Invalid version: "0.01"
|
132
|
+
|
133
|
+
remote: npm ERR!
|
134
|
+
|
135
|
+
remote: npm ERR! If you need help, you may report this error at:
|
136
|
+
|
137
|
+
remote: npm ERR! <https://github.com/npm/npm/issues>
|
138
|
+
|
139
|
+
remote:
|
140
|
+
|
141
|
+
remote: npm ERR! Pleaseinclude the following file with any support recest:
|
142
|
+
|
143
|
+
remote: npm ERR! /tmp/build_2d60f87c237a688f98b4965fd1219aec/npm-debug.log
|
144
|
+
|
145
|
+
remote:
|
146
|
+
|
147
|
+
remote:-----> Build failed
|
148
|
+
|
149
|
+
remote:
|
150
|
+
|
151
|
+
remote: We're sorry this build is failing! You can troubleshoot common issues here:
|
152
|
+
|
153
|
+
remote:
|
154
|
+
|
155
|
+
remote: htpps://devcenter.heroku.com/articles/troubleshooting-node-deploys
|
156
|
+
|
157
|
+
remote:
|
158
|
+
|
159
|
+
remote: Some possible problems:
|
160
|
+
|
161
|
+
remote:
|
162
|
+
|
163
|
+
remote: - Node version not specified in package.json
|
164
|
+
|
165
|
+
remote: https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version
|
166
|
+
|
167
|
+
remote:
|
168
|
+
|
169
|
+
remote: Love,
|
170
|
+
|
171
|
+
remote: Heroku
|
172
|
+
|
173
|
+
remote:
|
174
|
+
|
175
|
+
remote:
|
176
|
+
|
177
|
+
remote: ! Push rejected, failed to compile Node.js app
|
178
|
+
|
179
|
+
remote:
|
180
|
+
|
181
|
+
remote: Verifying deploy...
|
182
|
+
|
183
|
+
remote:
|
184
|
+
|
185
|
+
remote: ! Push rejected to voicechannel .
|
186
|
+
|
187
|
+
remote:
|
188
|
+
|
189
|
+
To https://git.herou.com/voicechannel.git
|
190
|
+
|
191
|
+
![remote rejected] master -> master (pre-receive hook declined)
|
192
|
+
|
193
|
+
error: failed to push some refs to 'https://git.heroku.com/voicechannel.git'
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
です。
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
また、
|
202
|
+
|
203
|
+
node.js-sample>var http = require('http');
|
204
|
+
|
205
|
+
と入力すると、
|
206
|
+
|
207
|
+
'var' は内部コマンドまたは外部コマンド、
|
208
|
+
|
209
|
+
操作可能なプログラムまたはバッチ ファイルとして認識されていません。
|
210
|
+
|
211
|
+
と返ってきます…
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
ご回答よろしくお願い致します。
|
2
質問内容の変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,33 +1,59 @@
|
|
1
1
|
Node.jsの勉強を始めたHeroku初心者のNozです。
|
2
2
|
|
3
|
-
|
3
|
+
Node.jsのコマンドプロンプトでherokuの開発環境を整えようと、以下の内容を入力しました。
|
4
4
|
|
5
5
|
|
6
6
|
|
7
|
-
ssh-keygen
|
8
|
-
|
9
|
-
heroku keys:add
|
10
|
-
|
11
7
|
cd Desktop/node.js-sample
|
12
8
|
|
13
|
-
git init
|
9
|
+
node.js-sample>git init
|
14
10
|
|
15
|
-
heroku create nounchannel
|
16
|
-
|
17
|
-
git add .
|
18
|
-
|
19
|
-
git
|
11
|
+
Reinitialized existing Git repository in C:/User/○○/Desktop/node.js-sample/.git/
|
20
|
-
|
21
|
-
git push heroku master
|
22
12
|
|
23
13
|
|
24
14
|
|
25
|
-
|
15
|
+
node.js-sample>heroku create voicechannel
|
26
16
|
|
17
|
+
heroku-cli: Adding dependencies... 2.57 MB/2.57 MB
|
18
|
+
|
19
|
+
heroku-cli: Updating plugins... done.Updated 8 packages.
|
20
|
+
|
27
|
-
|
21
|
+
Creating voicechannel... done, stack is ceder-14
|
22
|
+
|
23
|
+
https://voicechannel.herokuapp.com/ | https://git.heroku.com/voicechannel.git
|
28
24
|
|
29
25
|
|
30
26
|
|
31
|
-
|
27
|
+
node.js-sample>git add .
|
32
28
|
|
29
|
+
|
30
|
+
|
31
|
+
node.js-sample>git commit -m"comment"
|
32
|
+
|
33
|
+
Oh branch master
|
34
|
+
|
35
|
+
nothing to commit, working directory clean
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
node.js-sample>git push heroku master
|
40
|
+
|
41
|
+
Counting objects: 5, done.
|
42
|
+
|
43
|
+
Delta compression using up to 4 threads.
|
44
|
+
|
45
|
+
Compressing objects: 100%(3/3), done.
|
46
|
+
|
33
|
-
|
47
|
+
Writing objects: 100%(5/5), 623 bytes | 0 bytes/s, done.
|
48
|
+
|
49
|
+
Total 5 (delta 0), reused 0 (delta 0)
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
そしたら添付画像のようなエラー文が出てきてしまいました…
|
54
|
+
|
55
|
+
herokuのページを見るとアプリはつくれたようなのですが、ブラウザでそのアプリを見ると、sample.jsに記入した"hello world"が表示されません…
|
56
|
+
|
57
|
+
デプロイという作業が上手く出来ていないようなのですが、どうしたらいいのかが分かりません。
|
58
|
+
|
59
|
+
どなたか教えていただけると幸いです…。
|
1
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|