diff --git a/notes/code_samples/rebuild b/notes/code_samples/rebuild index 69a399b..4bf52ea 100755 --- a/notes/code_samples/rebuild +++ b/notes/code_samples/rebuild @@ -1,8 +1,7 @@ #!/usr/bin/env fish # TODO flag to recreate the venv too? echo "Rebuilding the Invenio application, this will DESTROY ALL DATA in the database and search engine and load fresh fixtures from the all_data directory" -invenio-cli services destroy -invenio-cli services setup +invenio-cli services setup --force --no-demo-data echo "The 'Failed to setup services.' warning because 'distutils.errors.DistutilsOptionError: no message catalogs found' error does not seem to affect the app" read -P 'would you like to run the application in the foreground? (y/N)' answer if [ $answer = 'y'] diff --git a/notes/run.md b/notes/run.md index ee5f0c3..3584d63 100644 --- a/notes/run.md +++ b/notes/run.md @@ -23,7 +23,7 @@ If you're running the app locally, the main URLs (for website and REST API) are ## Local Rebuild -To reset the local instance, run `invenio-cli destroy`, then redo the setup steps in [the readme](../readme.md). If we do not destroy the services, the next time we set up we get an error. +To reset the local instance, run `invenio-cli services setup --force --no-demo-data` when performing the steps in [the readme](../readme.md). The `--force` flag destroys the services; if we did not, we would get an error the next time we setup. ## CLI Usage