Keystone: [Admin UI] Hot Reload on Admin UI?

Created on 15 Feb 2020  Â·  7Comments  Â·  Source: keystonejs/keystone

Hello,

Any plans to implement Hot Reloading on Admin UI?
I don't see it in your roadmap: https://www.keystonejs.com/guides/road-map

Currently we have to relaunch the server on every little modification, like edit the fields options (defaultValue etc...), and this is a big waste of time during the development phase.

Thanks!

Most helpful comment

@maximelebreton Here's how I got this to work with nodemon:

"scripts: {
    ...
    "dev" : "cross-env NODE_ENV=development DISABLE_LOGGING=true nodemon --exec keystone dev"
,

All 7 comments

The admin UI itself already supports hot reloading. The thing is, the field configs don't 😬

Thanks @Vultraz, but then, is this only a bug or a deeper case you won't fix?

Well, you could use nodemon to auto-restart the server.

@maximelebreton Here's how I got this to work with nodemon:

"scripts: {
    ...
    "dev" : "cross-env NODE_ENV=development DISABLE_LOGGING=true nodemon --exec keystone dev"
,

Yep, nodemon is the solution for this for now.

Edit:
I solved it by adding the --ignore 'dist/*' flag to the nodemon command.

Hey, in my case solution provided by @justintemps doesn't work. When keystone prints in the console √ Builder initialized nodemon resets and the building starts from the beggining causing an infinite loop. Any ideas how to solve it?

@timothy02 yea sorry I was assuming you'd already build the dist files before running keystone dev. I don't think it will do that if you run keystone build first.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gautamsi picture gautamsi  Â·  14Comments

bholloway picture bholloway  Â·  18Comments

molomby picture molomby  Â·  11Comments

cowjen01 picture cowjen01  Â·  13Comments

molomby picture molomby  Â·  11Comments