Skip to content
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

insert reading of default optimade_config.json in example run script run.sh #627

Merged
merged 4 commits into from
Dec 14, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#!/bin/bash

if [ -z "$OPTIMADE_CONFIG_FILE" ]; then
export OPTIMADE_CONFIG_FILE="./optimade_config.json"
echo "Using the demo config file at ${OPTIMADE_CONFIG_FILE}."
echo "Set the environment variable OPTIMADE_CONFIG_FILE to override this behaviour."
ml-evs marked this conversation as resolved.
Show resolved Hide resolved
echo "For more configuration options, please see https://www.optimade.org/optimade-python-tools/configuration/."
fi

export OPTIMADE_LOG_LEVEL=info
if [ "$1" == "debug" ]; then
export OPTIMADE_DEBUG=1
Expand Down