Files
Auto-GPT/autogpts/forge/run
2023-09-16 14:03:48 -07:00

21 lines
429 B
Bash
Executable File

#!/bin/bash
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
echo "Please add your api keys to the .env file."
fi
poetry run python -m forge &
poetry run agbenchmark serve &