Skip to content

Commit e595ffb

Browse files
Merge pull request #37 from kevinbackhouse/env-default
Update .env defaults
2 parents cbd37df + cb1664a commit e595ffb

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

.devcontainer/env-default

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Uncomment the endpoint that you want to use:
2+
#AI_API_ENDPOINT=https://models.github.ai/inference
3+
#AI_API_ENDPOINT=https://api.githubcopilot.com
4+
#AI_API_ENDPOINT=https://api.openai.com/v1
5+
6+
# Optional data storage directories. By default, ~/.local is used.
7+
#MEMCACHE_STATE_DIR=/app/data
8+
#CODEQL_DBS_BASE_PATH=/app/data
9+
#DATA_DIR=/app/data
10+
#LOG_DIR=/app/logs

.devcontainer/post-create.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@ pip install -e .
2020
# Create .env file if it doesn't exist
2121
if [ ! -f .env ]; then
2222
echo "📝 Creating .env template..."
23-
echo "# Optional: CodeQL database base path" >> .env
24-
echo "CODEQL_DBS_BASE_PATH=$(realpath data)" >> .env
25-
echo "⚠️ Please configure the environment or your .env file with required tokens!"
23+
cp .devcontainer/env-default .env || { echo "Error creating .env"; exit 1; }
24+
echo "⚠️ Defaults can be changed by editing the auto-generated .env file."
2625
fi
2726

2827
echo "✅ Development environment setup complete!"

0 commit comments

Comments
 (0)