mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-01-10 07:38:04 -05:00
18 lines
370 B
Bash
Executable File
18 lines
370 B
Bash
Executable File
#!/bin/bash
|
|
|
|
kill $(lsof -t -i :8000)
|
|
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
|