0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
ghost/core/server
Hannah Wolfe 0b79abf5b2 Added new, simpler, linear boot process
Background:
- Ghosts existing boot process is split across multiple files, has affordances for outdated ways of running Ghost and is generally non-linear making it nigh-impossible to follow
- The web of dependencies that are loaded on boot are also impossible to unpick, which makes it really hard to decouple Ghost
- With 4.0 we want to introduce a new, linear, simpler, clearer way to boot up Ghost to unlock decoupling Ghost into much smaller pieces

This commit:
- adds a new ghost.js file which switches between boot mode with `node index` or `node index old` so that if we find bugs we can work around them this week
   - Note: the old boot process will go away very soon, but ghost.js will remain as the interface between the command to start Ghost and the application code
- reworks the database migration process into a standalone utility, so that the DB is handled as one simple step of the boot process, decoupled from everything else
- is missing tests for this new db utility
- leaves a lot of work to do around loading core code, services, express apps in a sensible order, as work to fix this would start to break the old boot process
- doesn't use the new maintenance app because we aren't restarting the server here, instead we have the concept of a "core app" that starts in maintenance mode - need to think about how apps will be decoupled in the near future
2021-02-08 11:56:44 +00:00
..
adapters Improved JSDoc in default scheduler 2020-12-16 17:25:05 +13:00
api 🐛 Fixed Member model removing labels when unset 2021-02-08 09:39:46 +00:00
data Added new, simpler, linear boot process 2021-02-08 11:56:44 +00:00
lib Updated links to ghost.org sites 2021-01-20 09:59:45 +13:00
models 🐛 Fixed Member model removing labels when unset 2021-02-08 09:39:46 +00:00
public Enabled Portal (#12317) 2020-11-03 14:36:21 +05:30
services Passed MemberSubscribeEvent to members-api 2021-02-05 16:02:08 +00:00
translations Updated links to ghost.org sites 2021-01-20 09:59:45 +13:00
views Added new, simpler, linear boot process 2021-02-08 11:56:44 +00:00
web Enabled Members for all sites (#12582) 2021-02-02 16:12:53 +00:00
analytics-events.js
ghost-server.js Added new, simpler, linear boot process 2021-02-08 11:56:44 +00:00
index.js Changed exit codes to be > 0 2021-02-05 20:13:50 +00:00
overrides.js Moved sqlite3 override rules to db connection lib 2021-02-05 11:51:56 +00:00
update-check.js