Add command to reset environments (#5234)

This commit is contained in:
merwanehamadi
2023-09-16 14:03:48 -07:00
committed by GitHub
parent b101fec16b
commit 255c6a8f3a

View File

@@ -2,6 +2,14 @@
kill $(lsof -t -i :8000)
kill $(lsof -t -i :8080)
ENV_PATH=$(poetry env info --path)
if [ -d "$ENV_PATH" ]; then
rm -rf $ENV_PATH
echo "Removed the poetry environment at $ENV_PATH."
else
echo "No poetry environment found."
fi
poetry install
if [ ! -f .env ]; then
cp .env.example .env
@@ -9,4 +17,4 @@ if [ ! -f .env ]; then
fi
poetry run python -m forge &
agbenchmark serve & #voluntarily not using poetry run so that it runs in editable mode
poetry run agbenchmark serve &