mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 21:07:27 +00:00
22 lines
478 B
TypeScript
22 lines
478 B
TypeScript
|
|
/*
|
||
|
|
|--------------------------------------------------------------------------
|
||
|
|
| Preloaded File
|
||
|
|
|--------------------------------------------------------------------------
|
||
|
|
|
|
||
|
|
| Any code written inside this file will be executed during the application
|
||
|
|
| boot.
|
||
|
|
|
|
||
|
|
*/
|
||
|
|
|
||
|
|
import Bull from '@ioc:Rocketseat/Bull'
|
||
|
|
import Env from '@ioc:Adonis/Core/Env'
|
||
|
|
|
||
|
|
const PORT = 9999
|
||
|
|
const isDevelopment = Env.get('NODE_ENV') === 'development'
|
||
|
|
|
||
|
|
Bull.process()
|
||
|
|
|
||
|
|
if (isDevelopment) {
|
||
|
|
Bull.ui(PORT)
|
||
|
|
}
|