Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
add .env file for wyvern init
Browse files Browse the repository at this point in the history
  • Loading branch information
wintonzheng committed Sep 13, 2023
1 parent 5adfe51 commit a4a56dc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,16 @@ Now that the `wyvern init` has set up your initial repository, you should see th
│ │ ├── ranking_pipline.py
│ │ ├── realtime_features.py
│ │ ├── schemas.py
├── feature-store-python
│ ├── features
│ │ ├── feature_store.yaml
│ │ ├── features.py
│ │ ├── main.py
├── tests
│ ├── __init__.py
├── ci
│ ├── deploy.py
├── .env
└── .gitignore
```

Expand Down
4 changes: 4 additions & 0 deletions wyvern/cli/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ def init(
shutil.move(item_path, os.path.join(project, item))
shutil.rmtree(extracted_dir)

# add a .env file to the new repository with ENVIRONMENT=development
with open(os.path.join(project, ".env"), "w") as env_file:
env_file.write("ENVIRONMENT=development\n")

tracking.capture(event="oss_init_succeed")
typer.echo(
f"Successfully initialized Wyvern application template code in {project}",
Expand Down

0 comments on commit a4a56dc

Please sign in to comment.