-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Adds CLI flags to dev build and start to change what is built and run
#8046
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 3c55c60:
|
9078d83 to
599e0fa
Compare
599e0fa to
7a4837d
Compare
db93d6d to
d9a378d
Compare
4d91146 to
d2b8acd
Compare
d2b8acd to
1ccb5b9
Compare
1b000b6 to
a1fa327
Compare
a1fa327 to
69d8aa4
Compare
|
@borisno2 Am I able to build the admin ui separately yet? |
31d0e37 to
aae3431
Compare
aae3431 to
d60c825
Compare
d60c825 to
3c55c60
Compare
|
Moved the removal of |
…rom being used (#8455) Co-authored-by: Daniel Cousens <[email protected]>
|
What is the reasoning behind deprecation of |
Currently, Keystone provides the
useMigrationsconfig option to either enable or disable the generation of Prisma Migrations. WhenuseMigrationsisfalse, the default, runningkeystone devperforms a schema push to the DB and forces a reset if there is any drift. WhenuseMigrationsistruerunningkeystone devwill generate the prisma migrations and also reset the DB if there is any drift.The aim of this PR to give the developer more options when it comes to migrations. The current behaviour remains however the following is added:
keystone prismaCLI to use the built configuration when the--frozenflag is used so that uncompiledtsfiles are not required after a build step - helpful when building Docker images without needingkeystone.tsand all its dependencies.--no-db-pushflag forkeystone devthat skips the schema push to the DB whenuseMigrationsis set tofalseorundefined, used if you don't want to force keystone to use the database you have, for example, an existing DB you don't want to have migrations for.buildso that it generates the schema files and adds a--frozenflag tobuildto force it to just validate instead (current behaviour)--no-servertodevto run dev without express, useful when not using express - ie Keystone in Next--no-ui(dev,buildandstart) and--no-prisma(devandbuild) to build and/or run keystone either without the AdminUI or without PrismauseMigrationsas deprecated - this config option will be removed in the next major release - usekeystone prisma migrate devto generate database migrations. To mirror existing behaviour ofuseMigrationsusekeystone prisma migrate dev && keystone dev --no-db-push