Application Error When uploading to Heroku

Application Error When uploading to Heroku
0

#1
2018-03-20T08:10:50.701561+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=vijaychauhanssn.herokuapp.com request_id=4ef600f8
-4708-4769-bcdb-c6f44db2cd1a fwd="103.62.147.242" dyno= connect= service= status
=503 bytes= protocol=https
2018-03-20T08:10:51.903018+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/favicon.ico" host=vijaychauhanssn.herokuapp.com request_
id=244217e9-8053-4c9a-ac92-8bdd1e07ccde fwd="103.62.147.242" dyno= connect= serv
ice= status=503 bytes= protocol=https
2018-03-20T08:10:53.220450+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=vijaychauhanssn.herokuapp.com request_id=6b1265a8
-bf91-4c54-b926-7280574a1e99 fwd="103.62.147.242" dyno= connect= service= status
=503 bytes= protocol=https
2018-03-20T08:10:54.272977+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=vijaychauhanssn.herokuapp.com request_id=4b43d473
-ce5e-4060-a30a-3ccd3ec4dc9f fwd="103.62.147.242" dyno= connect= service= status
=503 bytes= protocol=https
2018-03-20T08:10:55.150511+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=vijaychauhanssn.herokuapp.com request_id=0ec0610d
-ddf3-40ec-bd0b-2fe9d1572192 fwd="103.62.147.242" dyno= connect= service= status
=503 bytes= protocol=https
2018-03-20T08:10:55.618635+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=vijaychauhanssn.herokuapp.com request_id=6bc33c89
-af7e-45b3-b22c-3a826b294b78 fwd="103.62.147.242" dyno= connect= service= status
=503 bytes= protocol=https
2018-03-20T08:10:56.440327+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/favicon.ico" host=vijaychauhanssn.herokuapp.com request_
id=0c208c35-ddb3-447b-af25-de8430beaaa9 fwd="103.62.147.242" dyno= connect= serv
ice= status=503 bytes= protocol=https
2018-03-20T08:12:05.354755+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=vijaychauhanssn.herokuapp.com request_id=ed39a85c
-a0b4-4a62-842e-0c3c8a7aa001 fwd="103.62.147.242" dyno= connect= service= status
=503 bytes= protocol=https
2018-03-20T08:12:06.238193+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=vijaychauhanssn.herokuapp.com request_id=d99973bb
-c6df-40e3-bbf3-87296362936f fwd="103.62.147.242" dyno= connect= service= status
=503 bytes= protocol=https
2018-03-20T08:12:07.732310+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=vijaychauhanssn.herokuapp.com request_id=b0ce7cd8
-b39a-4f18-9036-3e4bef23895a fwd="103.62.147.242" dyno= connect= service= status
=503 bytes= protocol=https
2018-03-20T08:12:08.984687+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=vijaychauhanssn.herokuapp.com request_id=663484eb
-bd62-411a-ab30-11dc2746a3ab fwd="103.62.147.242" dyno= connect= service= status
=503 bytes= protocol=https
2018-03-20T08:12:09.641801+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=vijaychauhanssn.herokuapp.com request_id=a800c6fb
-93ce-4899-b136-e116a4d2e323 fwd="103.62.147.242" dyno= connect= service= status
=503 bytes= protocol=https
2018-03-20T08:12:10.419197+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/favicon.ico" host=vijaychauhanssn.herokuapp.com request_
id=25422e6a-6067-4930-8c1f-2439fb7b52fb fwd="103.62.147.242" dyno= connect= serv
ice= status=503 bytes= protocol=https
2018-03-20T08:22:15.678120+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=vijaychauhanssn.herokuapp.com request_id=679bcb77
-dcb0-405e-8dcd-285bfaa2e83a fwd="103.62.147.242" dyno= connect= service= status
=503 bytes= protocol=https
2018-03-20T08:22:28.863484+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/favicon.ico" host=vijaychauhanssn.herokuapp.com request_
id=6e793170-7492-429c-973e-dae51b965ca7 fwd="103.62.147.242" dyno= connect= serv
ice= status=503 bytes= protocol=https
2018-03-20T08:35:44.163093+00:00 heroku[web.1]: State changed from crashed to st
arting
2018-03-20T08:35:53.864452+00:00 heroku[web.1]: Starting process with command `n
ode dist/server/app.js`
2018-03-20T08:35:55.550243+00:00 app[web.1]: module.js:540
2018-03-20T08:35:55.550262+00:00 app[web.1]:     throw err;
2018-03-20T08:35:55.550265+00:00 app[web.1]:
2018-03-20T08:35:55.550266+00:00 app[web.1]: Error: Cannot find module '/app/dis
t/server/app.js'
2018-03-20T08:35:55.550268+00:00 app[web.1]:     at Function.Module._resolveFile
name (module.js:538:15)
2018-03-20T08:35:55.550269+00:00 app[web.1]:     at Function.Module._load (modul
e.js:468:25)
2018-03-20T08:35:55.550264+00:00 app[web.1]:     ^
2018-03-20T08:35:55.550271+00:00 app[web.1]:     at startup (bootstrap_node.js:1
87:16)
2018-03-20T08:35:55.550272+00:00 app[web.1]:     at bootstrap_node.js:608:3
2018-03-20T08:35:55.550270+00:00 app[web.1]:     at Function.Module.runMain (mod
ule.js:684:10)
2018-03-20T08:35:55.616956+00:00 heroku[web.1]: State changed from starting to c
rashed
2018-03-20T08:35:55.604059+00:00 heroku[web.1]: Process exited with status 1
2018-03-20T09:31:22.061519+00:00 heroku[web.1]: Starting process with command `n
ode dist/server/app.js`
2018-03-20T09:31:24.811563+00:00 heroku[web.1]: State changed from starting to c
rashed
2018-03-20T09:31:24.727585+00:00 app[web.1]:     throw err;
2018-03-20T09:31:24.727565+00:00 app[web.1]: module.js:540
2018-03-20T09:31:24.727586+00:00 app[web.1]:     ^
2018-03-20T09:31:24.727588+00:00 app[web.1]:
2018-03-20T09:31:24.727591+00:00 app[web.1]:     at Function.Module._resolveFile
name (module.js:538:15)
2018-03-20T09:31:24.727593+00:00 app[web.1]:     at Function.Module._load (modul
e.js:468:25)
2018-03-20T09:31:24.727590+00:00 app[web.1]: Error: Cannot find module '/app/dis
t/server/app.js'
2018-03-20T09:31:24.727594+00:00 app[web.1]:     at Function.Module.runMain (mod
ule.js:684:10)
2018-03-20T09:31:24.727596+00:00 app[web.1]:     at startup (bootstrap_node.js:1
87:16)
2018-03-20T09:31:24.727598+00:00 app[web.1]:     at bootstrap_node.js:608:3
2018-03-20T09:31:24.793224+00:00 heroku[web.1]: Process exited with status 1
2018-03-20T11:07:14.000000+00:00 app[api]: Build started by user vijaychauhanssn
@gmail.com
2018-03-20T11:08:13.396606+00:00 heroku[web.1]: State changed from crashed to st
arting
2018-03-20T11:08:12.975690+00:00 app[api]: Release v4 created by user vijaychauh
anssn@gmail.com
2018-03-20T11:08:12.975690+00:00 app[api]: Deploy f91f4acb by user vijaychauhans
sn@gmail.com
2018-03-20T11:07:14.000000+00:00 app[api]: Build succeeded
2018-03-20T11:08:22.244873+00:00 heroku[web.1]: Starting process with command `n
ode dist/server/app.js`
2018-03-20T11:08:23.955991+00:00 heroku[web.1]: Process exited with status 1
2018-03-20T11:08:23.908856+00:00 app[web.1]: module.js:540
2018-03-20T11:08:23.908881+00:00 app[web.1]:     throw err;
2018-03-20T11:08:23.908883+00:00 app[web.1]:     ^
2018-03-20T11:08:23.908885+00:00 app[web.1]:
2018-03-20T11:08:23.908886+00:00 app[web.1]: Error: Cannot find module '/app/dis
t/server/app.js'
2018-03-20T11:08:23.908887+00:00 app[web.1]:     at Function.Module._resolveFile
name (module.js:538:15)
2018-03-20T11:08:23.908889+00:00 app[web.1]:     at Function.Module._load (modul
e.js:468:25)
2018-03-20T11:08:23.908890+00:00 app[web.1]:     at Function.Module.runMain (mod
ule.js:684:10)
2018-03-20T11:08:23.908891+00:00 app[web.1]:     at startup (bootstrap_node.js:1
87:16)
2018-03-20T11:08:23.908892+00:00 app[web.1]:     at bootstrap_node.js:608:3
2018-03-20T11:08:23.970640+00:00 heroku[web.1]: State changed from starting to c
rashed
2018-03-20T11:08:23.972584+00:00 heroku[web.1]: State changed from crashed to st
arting
2018-03-20T11:08:38.111134+00:00 heroku[web.1]: Starting process with command `n
ode dist/server/app.js`
2018-03-20T11:08:40.680964+00:00 heroku[web.1]: Process exited with status 1
2018-03-20T11:08:40.743068+00:00 heroku[web.1]: State changed from starting to c
rashed
2018-03-20T11:08:40.622072+00:00 app[web.1]: module.js:540
2018-03-20T11:08:40.622091+00:00 app[web.1]:     throw err;
2018-03-20T11:08:40.622094+00:00 app[web.1]:
2018-03-20T11:08:40.622092+00:00 app[web.1]:     ^
2018-03-20T11:08:40.622096+00:00 app[web.1]: Error: Cannot find module '/app/dis
t/server/app.js'
2018-03-20T11:08:40.622097+00:00 app[web.1]:     at Function.Module._resolveFile
name (module.js:538:15)
2018-03-20T11:08:40.622099+00:00 app[web.1]:     at Function.Module._load (modul
e.js:468:25)
2018-03-20T11:08:40.622101+00:00 app[web.1]:     at Function.Module.runMain (mod
ule.js:684:10)
2018-03-20T11:08:40.622103+00:00 app[web.1]:     at startup (bootstrap_node.js:1
87:16)
2018-03-20T11:08:40.622105+00:00 app[web.1]:     at bootstrap_node.js:608:3
2018-03-20T11:08:41.212574+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=vijaychauhanssn.herokuapp.com request_id=9cc636fe
-b8a5-4a29-88ad-b4fe11850d03 fwd="103.62.147.242" dyno= connect= service= status
=503 bytes= protocol=https
2018-03-20T11:08:42.747229+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/favicon.ico" host=vijaychauhanssn.herokuapp.com request_
id=8d64b6dc-ad89-407a-8b4e-e0c99a934bc1 fwd="103.62.147.242" dyno= connect= serv
ice= status=503 bytes= protocol=https
2018-03-20T11:08:44.962368+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=vijaychauhanssn.herokuapp.com request_id=2fb877e9
-3bc5-4c2e-8e53-4e94cbc6c67a fwd="103.62.147.242" dyno= connect= service= status
=503 bytes= protocol=https
2018-03-20T11:08:46.522166+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/favicon.ico" host=vijaychauhanssn.herokuapp.com request_
id=9504e9c6-1bda-470c-939c-cd5aa8c2de58 fwd="103.62.147.242" dyno= connect= serv
ice= status=503 bytes= protocol=https
2018-03-20T11:08:47.385912+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=vijaychauhanssn.herokuapp.com request_id=e9fcd542
-8a2d-40b8-a5ef-1ac98a68be7b fwd="103.62.147.242" dyno= connect= service= status
=503 bytes= protocol=https
2018-03-20T11:08:47.832631+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=vijaychauhanssn.herokuapp.com request_id=0a26da64
-1256-4a2d-aaeb-81c60761ba5f fwd="103.62.147.242" dyno= connect= service= status
=503 bytes= protocol=https
2018-03-20T11:08:48.188201+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=vijaychauhanssn.herokuapp.com request_id=e82007e1
-57df-46ae-b915-54df70fb4939 fwd="103.62.147.242" dyno= connect= service= status
=503 bytes= protocol=https
2018-03-20T11:08:48.393984+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=vijaychauhanssn.herokuapp.com request_id=eece7747
-c0a5-4533-8494-b6cfe8b13431 fwd="103.62.147.242" dyno= connect= service= status
=503 bytes= protocol=https
2018-03-20T11:08:48.529777+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=vijaychauhanssn.herokuapp.com request_id=77ee903f
-3fcb-45f0-b1ee-5821012b3c87 fwd="103.62.147.242" dyno= connect= service= status
=503 bytes= protocol=https
2018-03-20T11:08:48.665667+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=vijaychauhanssn.herokuapp.com request_id=6a179952
-3a36-42cf-9e8d-19a63fe28f69 fwd="103.62.147.242" dyno= connect= service= status
=503 bytes= protocol=https
2018-03-20T11:08:49.364729+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=vijaychauhanssn.herokuapp.com request_id=8374aacc
-a7d3-4067-8198-fb6f7b5451df fwd="103.62.147.242" dyno= connect= service= status
=503 bytes= protocol=https
2018-03-20T11:08:49.488772+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=vijaychauhanssn.herokuapp.com request_id=28af2633
-fb94-4959-b975-48810194f77a fwd="103.62.147.242" dyno= connect= service= status
=503 bytes= protocol=https
2018-03-20T11:08:49.673303+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=vijaychauhanssn.herokuapp.com request_id=8b369329
-3584-4da1-88de-60abd3a2a9cc fwd="103.62.147.242" dyno= connect= service= status
=503 bytes= protocol=https
2018-03-20T11:08:49.605446+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=vijaychauhanssn.herokuapp.com request_id=cd912f1a
-93e0-460a-89e4-7a8580f4ab4e fwd="103.62.147.242" dyno= connect= service= status
=503 bytes= protocol=https
2018-03-20T11:08:49.832366+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=vijaychauhanssn.herokuapp.com request_id=1f1b2f58
-8243-4798-9703-bd5512fde9ab fwd="103.62.147.242" dyno= connect= service= status
=503 bytes= protocol=https
2018-03-20T11:08:49.936401+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=vijaychauhanssn.herokuapp.com request_id=9531fbb3
-b24f-4747-bdb2-dc0a9de89996 fwd="103.62.147.242" dyno= connect= service= status
=503 bytes= protocol=https
2018-03-20T11:08:50.291420+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=vijaychauhanssn.herokuapp.com request_id=428056fa
-7e93-44c6-adc1-a001495219be fwd="103.62.147.242" dyno= connect= service= status
=503 bytes= protocol=https
2018-03-20T11:08:50.442242+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=vijaychauhanssn.herokuapp.com request_id=aca92251
-8ee1-48e4-989a-4ec37842cff7 fwd="103.62.147.242" dyno= connect= service= status
=503 bytes= protocol=https
2018-03-20T11:08:50.582732+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=vijaychauhanssn.herokuapp.com request_id=0a8f076a
-00a5-42ee-b3f8-61a1ca2b70be fwd="103.62.147.242" dyno= connect= service= status
=503 bytes= protocol=https
2018-03-20T11:08:50.995243+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=vijaychauhanssn.herokuapp.com request_id=1803bcfb
-dd90-4c45-9ffb-e2577266a3a0 fwd="103.62.147.242" dyno= connect= service= status
=503 bytes= protocol=https
2018-03-20T11:08:51.420187+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=vijaychauhanssn.herokuapp.com request_id=f46ad65b
-98df-42c8-91f6-89bbce8f94ad fwd="103.62.147.242" dyno= connect= service= status
=503 bytes= protocol=https
2018-03-20T11:08:51.643854+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=vijaychauhanssn.herokuapp.com request_id=c0df319a
-9281-4910-9622-6da9c4cac0d4 fwd="103.62.147.242" dyno= connect= service= status
=503 bytes= protocol=https
2018-03-20T11:08:51.830376+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=vijaychauhanssn.herokuapp.com request_id=c75ae409
-5d31-4d24-b64d-726711d20186 fwd="103.62.147.242" dyno= connect= service= status
=503 bytes= protocol=https
2018-03-20T11:08:53.059258+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/favicon.ico" host=vijaychauhanssn.herokuapp.com request_
id=3e926dfe-6a50-4bff-888b-656c7e8cd220 fwd="103.62.147.242" dyno= connect= serv
ice= status=503 bytes= protocol=https
2018-03-20T11:09:40.462308+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=vijaychauhanssn.herokuapp.com request_id=cd24ddd4
-9cbe-4514-8ab5-2bc07375baf5 fwd="103.62.147.242" dyno= connect= service= status
=503 bytes= protocol=https
2018-03-20T11:09:41.735464+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/favicon.ico" host=vijaychauhanssn.herokuapp.com request_
id=2f8baba7-616a-47d0-95b7-d801ae5445c8 fwd="103.62.147.242" dyno= connect= serv
ice= status=503 bytes= protocol=https

#2

What is your file structure?


#3


#4

I searched your project on github and i think the problem is that the github repo doesn’t contain the compiled code, so when you upload it to heroku only the typescript files are going to be on the server, but heroku doesn’t know what to do with it. You need to compile your code locally, and include it in the github repository, then upload it to heroku, or you could make a completely new repo for the compiled code only which you upload to heroku.

tldr: don’t gitignore the dist folder


#5

Project is working well…


#6

Just to be sure, you did upload the dist folder?