質問編集履歴
5
訂正
title
CHANGED
File without changes
|
body
CHANGED
@@ -133,9 +133,9 @@
|
|
133
133
|
|
134
134
|
//packagejson
|
135
135
|
{
|
136
|
-
"name": "
|
136
|
+
"name": "test",
|
137
137
|
"version": "1.0.0",
|
138
|
-
"description": "
|
138
|
+
"description": "test",
|
139
139
|
"main": "heloku.js",
|
140
140
|
"dependencies": {
|
141
141
|
"express": "*",
|
4
訂正
title
CHANGED
File without changes
|
body
CHANGED
@@ -130,21 +130,7 @@
|
|
130
130
|
});
|
131
131
|
|
132
132
|
```
|
133
|
-
|
134
|
-
//herokulog
|
135
|
-
2017-11-17T08:17:41.054727+00:00 heroku[web.1]: Restarting
|
136
|
-
2017-11-17T08:17:41.055454+00:00 heroku[web.1]: State changed from up to starting
|
137
|
-
2017-11-17T08:17:41.923883+00:00 heroku[web.1]: Stopping all processes with SIGTERM
|
138
|
-
2017-11-17T08:17:42.100518+00:00 heroku[web.1]: Process exited with status 143
|
139
|
-
2017-11-17T08:17:42.705047+00:00 heroku[web.1]: Starting process with command `node heloku`
|
140
|
-
2017-11-17T08:17:44.554209+00:00 app[web.1]: http server listening on 12766
|
141
|
-
2017-11-17T08:17:44.555776+00:00 app[web.1]: websocket server created
|
142
|
-
2017-11-17T08:17:45.011311+00:00 heroku[web.1]: State changed from starting to up
|
143
|
-
2017-11-17T08:19:43.036966+00:00 heroku[router]: at=info method=GET path="/:12766/ws" host=silentcaveserver.herokuapp.com request_id=c14f78bb-841b-4568-ac4d-37d72c1a3fe7 fwd="203.180.29.157" dyno=web.1 connect=0ms service=23ms status=404 bytes=392 protocol=http //unity側から接続したときのlog
|
144
|
-
2017-11-17T08:20:02.426665+00:00 heroku[router]: at=info method=GET path="/:12766/ws" host=silentcaveserver.herokuapp.com request_id=7daf5634-c4ed-4d3e-b5c5-c98d9d3583fe fwd="203.180.29.157" dyno=web.1 connect=1ms service=7ms status=404 bytes=392 protocol=http
|
145
|
-
2017-11-17T08:20:24.749097+00:00 heroku[router]: at=info method=GET path="/" host=silentcaveserver.herokuapp.com request_id=a81a93e7-a530-48e9-aac7-f26d99f58c96 fwd="203.180.29.157" dyno=web.1 connect=0ms service=3ms status=404 bytes=383 protocol=https //Open appをクリックした際のlog
|
146
|
-
2017-11-17T08:22:06.693476+00:00 heroku[router]: at=info method=GET path="/" host=silentcaveserver.herokuapp.com request_id=08f02a68-8c06-4270-8abe-2ee939261185 fwd="203.180.29.157" dyno=web.1 connect=1ms service=2ms status=404 bytes=383 protocol=https
|
147
|
-
```
|
133
|
+
|
148
134
|
//packagejson
|
149
135
|
{
|
150
136
|
"name": "Silentcave",
|
3
回答を絞る
title
CHANGED
File without changes
|
body
CHANGED
@@ -2,15 +2,10 @@
|
|
2
2
|
herokuにdeployしてopen appをクリックするとCannot GET /と表示されます。
|
3
3
|
ローカルでは動作を確認してます
|
4
4
|
|
5
|
-
またunityでアクセスする際に下記のURL(Open appをクリックした際のリンクと起動したときのポート番号)合っているのでしょうか
|
6
5
|
|
7
6
|
|
8
7
|
|
9
8
|
```
|
10
|
-
//c#(unity)
|
11
|
-
ws = new WebSocket("ws://silentcaveserver.herokuapp.com/:8000/ws");
|
12
|
-
```
|
13
|
-
```
|
14
9
|
//heloku.js(herokuにあげるやつ)
|
15
10
|
var WebSocketServer = require('ws').Server
|
16
11
|
, http = require('http')
|
@@ -149,7 +144,7 @@
|
|
149
144
|
2017-11-17T08:20:02.426665+00:00 heroku[router]: at=info method=GET path="/:12766/ws" host=silentcaveserver.herokuapp.com request_id=7daf5634-c4ed-4d3e-b5c5-c98d9d3583fe fwd="203.180.29.157" dyno=web.1 connect=1ms service=7ms status=404 bytes=392 protocol=http
|
150
145
|
2017-11-17T08:20:24.749097+00:00 heroku[router]: at=info method=GET path="/" host=silentcaveserver.herokuapp.com request_id=a81a93e7-a530-48e9-aac7-f26d99f58c96 fwd="203.180.29.157" dyno=web.1 connect=0ms service=3ms status=404 bytes=383 protocol=https //Open appをクリックした際のlog
|
151
146
|
2017-11-17T08:22:06.693476+00:00 heroku[router]: at=info method=GET path="/" host=silentcaveserver.herokuapp.com request_id=08f02a68-8c06-4270-8abe-2ee939261185 fwd="203.180.29.157" dyno=web.1 connect=1ms service=2ms status=404 bytes=383 protocol=https
|
152
|
-
```
|
147
|
+
```
|
153
148
|
//packagejson
|
154
149
|
{
|
155
150
|
"name": "Silentcave",
|
2
誤字
title
CHANGED
File without changes
|
body
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
```
|
10
10
|
//c#(unity)
|
11
|
-
ws = new WebSocket("ws://
|
11
|
+
ws = new WebSocket("ws://silentcaveserver.herokuapp.com/:8000/ws");
|
12
12
|
```
|
13
13
|
```
|
14
14
|
//heloku.js(herokuにあげるやつ)
|
@@ -145,16 +145,16 @@
|
|
145
145
|
2017-11-17T08:17:44.554209+00:00 app[web.1]: http server listening on 12766
|
146
146
|
2017-11-17T08:17:44.555776+00:00 app[web.1]: websocket server created
|
147
147
|
2017-11-17T08:17:45.011311+00:00 heroku[web.1]: State changed from starting to up
|
148
|
-
2017-11-17T08:19:43.036966+00:00 heroku[router]: at=info method=GET path="/:12766/ws" host=silentcaveserver.herokuapp.com request_id=c14f78bb-841b-4568-ac4d-37d72c1a3fe7 fwd="203.180.29.157" dyno=web.1 connect=0ms service=23ms status=404 bytes=392 protocol=http//unity側から接続したときのlog
|
148
|
+
2017-11-17T08:19:43.036966+00:00 heroku[router]: at=info method=GET path="/:12766/ws" host=silentcaveserver.herokuapp.com request_id=c14f78bb-841b-4568-ac4d-37d72c1a3fe7 fwd="203.180.29.157" dyno=web.1 connect=0ms service=23ms status=404 bytes=392 protocol=http //unity側から接続したときのlog
|
149
149
|
2017-11-17T08:20:02.426665+00:00 heroku[router]: at=info method=GET path="/:12766/ws" host=silentcaveserver.herokuapp.com request_id=7daf5634-c4ed-4d3e-b5c5-c98d9d3583fe fwd="203.180.29.157" dyno=web.1 connect=1ms service=7ms status=404 bytes=392 protocol=http
|
150
|
-
2017-11-17T08:20:24.749097+00:00 heroku[router]: at=info method=GET path="/" host=silentcaveserver.herokuapp.com request_id=a81a93e7-a530-48e9-aac7-f26d99f58c96 fwd="203.180.29.157" dyno=web.1 connect=0ms service=3ms status=404 bytes=383 protocol=https//Open appをクリックした際のlog
|
150
|
+
2017-11-17T08:20:24.749097+00:00 heroku[router]: at=info method=GET path="/" host=silentcaveserver.herokuapp.com request_id=a81a93e7-a530-48e9-aac7-f26d99f58c96 fwd="203.180.29.157" dyno=web.1 connect=0ms service=3ms status=404 bytes=383 protocol=https //Open appをクリックした際のlog
|
151
151
|
2017-11-17T08:22:06.693476+00:00 heroku[router]: at=info method=GET path="/" host=silentcaveserver.herokuapp.com request_id=08f02a68-8c06-4270-8abe-2ee939261185 fwd="203.180.29.157" dyno=web.1 connect=1ms service=2ms status=404 bytes=383 protocol=https
|
152
152
|
``````
|
153
153
|
//packagejson
|
154
154
|
{
|
155
|
-
"name": "
|
155
|
+
"name": "Silentcave",
|
156
156
|
"version": "1.0.0",
|
157
|
-
"description": "
|
157
|
+
"description": "silentcave",
|
158
158
|
"main": "heloku.js",
|
159
159
|
"dependencies": {
|
160
160
|
"express": "*",
|
@@ -168,4 +168,5 @@
|
|
168
168
|
}
|
169
169
|
|
170
170
|
}
|
171
|
+
|
171
172
|
```
|
1
json追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -7,11 +7,11 @@
|
|
7
7
|
|
8
8
|
|
9
9
|
```
|
10
|
-
//c#
|
10
|
+
//c#(unity)
|
11
11
|
ws = new WebSocket("ws://test.herokuapp.com/:8000/ws");
|
12
12
|
```
|
13
13
|
```
|
14
|
-
//js(herokuにあげるやつ)
|
14
|
+
//heloku.js(herokuにあげるやつ)
|
15
15
|
var WebSocketServer = require('ws').Server
|
16
16
|
, http = require('http')
|
17
17
|
, express = require('express')
|
@@ -149,4 +149,23 @@
|
|
149
149
|
2017-11-17T08:20:02.426665+00:00 heroku[router]: at=info method=GET path="/:12766/ws" host=silentcaveserver.herokuapp.com request_id=7daf5634-c4ed-4d3e-b5c5-c98d9d3583fe fwd="203.180.29.157" dyno=web.1 connect=1ms service=7ms status=404 bytes=392 protocol=http
|
150
150
|
2017-11-17T08:20:24.749097+00:00 heroku[router]: at=info method=GET path="/" host=silentcaveserver.herokuapp.com request_id=a81a93e7-a530-48e9-aac7-f26d99f58c96 fwd="203.180.29.157" dyno=web.1 connect=0ms service=3ms status=404 bytes=383 protocol=https//Open appをクリックした際のlog
|
151
151
|
2017-11-17T08:22:06.693476+00:00 heroku[router]: at=info method=GET path="/" host=silentcaveserver.herokuapp.com request_id=08f02a68-8c06-4270-8abe-2ee939261185 fwd="203.180.29.157" dyno=web.1 connect=1ms service=2ms status=404 bytes=383 protocol=https
|
152
|
+
``````
|
153
|
+
//packagejson
|
154
|
+
{
|
155
|
+
"name": "tset",
|
156
|
+
"version": "1.0.0",
|
157
|
+
"description": "test",
|
158
|
+
"main": "heloku.js",
|
159
|
+
"dependencies": {
|
160
|
+
"express": "*",
|
161
|
+
"ws": "*"
|
162
|
+
},
|
163
|
+
"scripts": {
|
164
|
+
"start": "node heloku.js"
|
165
|
+
},
|
166
|
+
"engines": {
|
167
|
+
"node": "6.11.4"
|
168
|
+
}
|
169
|
+
|
170
|
+
}
|
152
171
|
```
|