Comments (2)
The events.js
is also used for other events via Event
provider. So it's not possible to know whether to load or not load this file.
The best way is to create start/redis.js
file and preLoad
it on server start inside server.js
file.
So it will be
new Ignitor(require('@adonisjs/fold'))
.preLoad('start/redis')
Docs here http://dev.adonisjs.com/docs/4.0/ignitor#_preloading_files
from adonis-cli.
Ah, that makes sense. I thought that all files from start
are loaded during bootup.
Thanks!
from adonis-cli.
Related Issues (20)
- adonis make:model model
- fs.pathExists is not a function HOT 10
- Ability to log commands and get exit code HOT 5
- Allow watch override ignore directories HOT 2
- Npm install fails when creating new project HOT 6
- Watching files for changes not working on special characters path HOT 1
- CommandNotFoundException HOT 4
- Adonis Cannot find module HOT 9
- Adonis command doesn't recognize my project in Staging environment HOT 4
- Link to Documentation Installing in README.md is broken HOT 1
- adonis serve --dev fails without error information if fs.inotify.max_user_watches=8192 HOT 3
- Could not install Adonis using NPM HOT 6
- Cannot read property 'major' of null HOT 2
- deprecated warnings HOT 1
- [Question] - Custom Generators
- Fix broken anchor links and improve contribution guidelines HOT 1
- not watching for file change on wsl
- Adonis Cli fails to install HOT 1
- Clarify difference between `adonis serve` with and without --dev flag HOT 1
- repl breaks on Node v15.0.0 TypeError: Cannot set property 'history' of undefined
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adonis-cli.