Skip to content

Commit 12a80ce

Browse files
Better instructions on how to reset persistent state in development environment
1 parent aee0cda commit 12a80ce

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ We use [nix](https://nixos.org/) to manage the development environment.
3737
To stop EvaP or the background services, press `Ctrl-C`.
3838
To exit the development shell, press `Ctrl-D` or type `exit`.
3939

40+
Inside the development shell, you can use `clean-setup` to remove persistent state (database, node modules, localsettings). Afterwards, `nix run .#services-full` will recreate a default development environment.
41+
4042
## Contributing
4143

4244
We'd love to see contributions! PRs solving existing issues are most helpful to us. It's best if you ask to be assigned for the issue so we won't have multiple people working on the same issue. Feel free to open issues for bugs, setup problems, or feature requests. If you have other questions, feel free to contact the [organization members](https://github.com/orgs/e-valuation/people). You should probably branch off `main`, the branch `release` is used for stable revisions.

nix/services.nix

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
CUR_HASH=$(nix-hash --flat ./package.json ./package-lock.json | paste -sd " ")
4343
echo "Hash is $CUR_HASH"
4444
if [[ -f node_modules/evap-hash && "$CUR_HASH" == "$(cat node_modules/evap-hash)" ]]; then
45-
echo "Equal hash found, exiting"
45+
echo "Equal node_modules/evap-hash found, exiting. Use clean-setup in a nix develop shell to trigger rerun."
4646
exit 0
4747
fi
4848
npm ci
@@ -59,7 +59,7 @@
5959
text = ''
6060
set -e
6161
if [[ -f evap/localsettings.py ]]; then
62-
echo "Found evap/localsettings.py, exiting"
62+
echo "Found evap/localsettings.py, exiting. Use clean-setup in a nix develop shell to trigger rerun."
6363
exit 0
6464
fi
6565
set -x

0 commit comments

Comments
 (0)