flatlogic / light-blue-react-template

Light Blue React Template - Admin Dashboard Template built with React
https://flatlogic.github.io/light-blue-react-template/#/app/main/dashboard
MIT License
539 stars 180 forks source link

Deploy live #14

Closed DEVDASTUDIO closed 3 years ago

DEVDASTUDIO commented 3 years ago

What is best server to deploy on live? Heroku or other cloud platform?

If it is Heroku then can you please guide how to deploy this app on heroku?

Thank you

DEVDASTUDIO commented 3 years ago

I depolyed this respository on Heroku and getting errors:


2020-11-16T06:48:49.660590+00:00 heroku[web.1]: Starting process with command `npm start`
2020-11-16T06:48:53.460758+00:00 app[web.1]: 
2020-11-16T06:48:53.460786+00:00 app[web.1]: > light-blue-react@5.0.1 start /app
2020-11-16T06:48:53.460787+00:00 app[web.1]: > node scripts/start.js
2020-11-16T06:48:53.460787+00:00 app[web.1]: 
2020-11-16T06:48:56.166769+00:00 app[web.1]: Starting the development server...
2020-11-16T06:48:56.166791+00:00 app[web.1]: 
2020-11-16T06:48:56.686317+00:00 heroku[web.1]: State changed from starting to up
2020-11-16T06:49:27.000000+00:00 app[api]: Build succeeded
2020-11-16T06:50:14.858167+00:00 heroku[router]: at=error code=H12 desc="Request timeout" method=GET path="/" host=vvv-web.herokuapp.com request_id=bf6c0eb8-0de6-4909-b478-045961d5f58f fwd="91.72.229.42" dyno=web.1 connect=0ms service=30001ms status=503 bytes=0 protocol=https
2020-11-16T06:50:47.149594+00:00 heroku[router]: at=error code=H12 desc="Request timeout" method=GET path="/favicon.ico" host=vvv-web.herokuapp.com request_id=a33d9089-6d49-4a63-9283-c859239db86c fwd="91.72.229.42" dyno=web.1 connect=1ms service=30000ms status=503 bytes=0 protocol=https
2020-11-16T06:51:16.823467+00:00 heroku[router]: at=error code=H13 desc="Connection closed without response" method=GET path="/" host=vvv-web.herokuapp.com request_id=11ee0a03-d7cd-4fae-9774-353cdfb01295 fwd="91.72.229.42" dyno=web.1 connect=0ms service=28858ms status=503 bytes=0 protocol=https
2020-11-16T06:51:16.741661+00:00 app[web.1]: 
2020-11-16T06:51:16.741671+00:00 app[web.1]: <--- Last few GCs --->
2020-11-16T06:51:16.741672+00:00 app[web.1]: 
2020-11-16T06:51:16.741673+00:00 app[web.1]: [23:0x411fbf0]   142142 ms: Mark-sweep 250.3 (257.0) -> 249.3 (257.0) MB, 373.9 / 0.0 ms  (average mu = 0.144, current mu = 0.097) allocation failure scavenge might not succeed
2020-11-16T06:51:16.741674+00:00 app[web.1]: [23:0x411fbf0]   142640 ms: Mark-sweep 250.3 (257.0) -> 249.3 (257.0) MB, 391.4 / 0.1 ms  (average mu = 0.178, current mu = 0.214) allocation failure scavenge might not succeed
2020-11-16T06:51:16.741674+00:00 app[web.1]: 
2020-11-16T06:51:16.741749+00:00 app[web.1]: 
2020-11-16T06:51:16.741750+00:00 app[web.1]: <--- JS stacktrace --->
2020-11-16T06:51:16.741750+00:00 app[web.1]: 
2020-11-16T06:51:16.741752+00:00 app[web.1]: ==== JS stack trace =========================================
2020-11-16T06:51:16.741752+00:00 app[web.1]: 
2020-11-16T06:51:16.741753+00:00 app[web.1]:     0: ExitFrame [pc: 0x1409219]
2020-11-16T06:51:16.741753+00:00 app[web.1]: Security context: 0x388d643408d1 <JSObject>
2020-11-16T06:51:16.741754+00:00 app[web.1]:     1: newline [0x163408b0dfb9] [/app/node_modules/@babel/generator/lib/printer.js:~111] [pc=0x2aead2ffafd2](this=0x04683d46bb89 <Printer map = 0x14ea26232d99>,0x1887db3804b1 <undefined>)
2020-11-16T06:51:16.741755+00:00 app[web.1]:     2: SwitchCase [0x163408b068c9] [/app/node_modules/@babel/generator/lib/generators/statements.js:244] [bytecode=0xbb95ecbeda9 offset=115](this=0x04683d46bb89 <Printer map = 0...
2020-11-16T06:51:16.741755+00:00 app[web.1]: 
2020-11-16T06:51:16.741790+00:00 app[web.1]: FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
2020-11-16T06:51:16.742727+00:00 app[web.1]:  1: 0xa17c40 node::Abort() [node]
2020-11-16T06:51:16.744295+00:00 app[web.1]:  2: 0xa1804c node::OnFatalError(char const*, char const*) [node]
2020-11-16T06:51:16.745514+00:00 app[web.1]:  3: 0xb95a7e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [node]
2020-11-16T06:51:16.747018+00:00 app[web.1]:  4: 0xb95df9 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [node]
2020-11-16T06:51:16.748506+00:00 app[web.1]:  5: 0xd53075  [node]
2020-11-16T06:51:16.750198+00:00 app[web.1]:  6: 0xd53706 v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [node]
2020-11-16T06:51:16.751758+00:00 app[web.1]:  7: 0xd5ffc5 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [node]
2020-11-16T06:51:16.754216+00:00 app[web.1]:  8: 0xd60e75 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
2020-11-16T06:51:16.754918+00:00 app[web.1]:  9: 0xd6392c v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
2020-11-16T06:51:16.755590+00:00 app[web.1]: 10: 0xd2a34b v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [node]
2020-11-16T06:51:16.760227+00:00 app[web.1]: 11: 0x106c91e v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [node]
2020-11-16T06:51:16.761224+00:00 app[web.1]: 12: 0x1409219  [node]
2020-11-16T06:51:16.823642+00:00 app[web.1]: Aborted
2020-11-16T06:51:16.833182+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2020-11-16T06:51:16.833540+00:00 app[web.1]: npm ERR! errno 134
2020-11-16T06:51:16.842214+00:00 app[web.1]: npm ERR! light-blue-react@5.0.1 start: `node scripts/start.js`
2020-11-16T06:51:16.842418+00:00 app[web.1]: npm ERR! Exit status 134
2020-11-16T06:51:16.842634+00:00 app[web.1]: npm ERR! 
2020-11-16T06:51:16.842817+00:00 app[web.1]: npm ERR! Failed at the light-blue-react@5.0.1 start script.
2020-11-16T06:51:16.842985+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2020-11-16T06:51:16.880067+00:00 app[web.1]: 
2020-11-16T06:51:16.880312+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2020-11-16T06:51:16.880446+00:00 app[web.1]: npm ERR!     /app/.npm/_logs/2020-11-16T06_51_16_843Z-debug.log
2020-11-16T06:51:16.965610+00:00 heroku[web.1]: Process exited with status 134
2020-11-16T06:51:17.022474+00:00 heroku[web.1]: State changed from up to crashed
2020-11-16T06:51:17.026235+00:00 heroku[web.1]: State changed from crashed to starting
2020-11-16T06:51:16.820545+00:00 heroku[router]: at=error code=H13 desc="Connection closed without response" method=GET path="/favicon.ico" host=vvv-web.herokuapp.com request_id=10713413-6854-4d48-97d0-68f889906686 fwd="91.72.229.42" dyno=web.1 connect=1ms service=28595ms status=503 bytes=0 protocol=https