Skip to content

Commit 2a10c35

Browse files
committed
update readme
1 parent d9b48bd commit 2a10c35

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Experimenting with using a dockerized Piccolo Admin with an existing (legacy) da
55
Clone repository.
66

77
```bash
8-
git clone https://github.com/sinisaos/piccolo-admin-docker.git
8+
git clone https://github.com/piccolo-orm/piccolo-admin-docker.git
99
```
1010

1111
Creating an `.env` file.
@@ -21,7 +21,7 @@ Creating a Docker image.
2121
docker build -t piccolo_admin .
2222
```
2323

24-
Running a Docker image (using the `--network=host` flag because I'm using an existing database from the local machine).
24+
Running a Docker image (use the `--network=host` flag for an existing database from the local machine).
2525

2626
```bash
2727
docker run -d --network=host --name admin_container piccolo_admin

app/.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ DB_HOST="your_host"
55
DB_PORT=5432
66
USERNAME="piccolo"
77
PASSWORD="piccolo123"
8+
89
ENCRIPTION_KEY="\xb7(\xa5\xa6\xa4&\xeb\x8eI\xfe_Y\x16\x12\xf4\xf4\xa8|\xc6#\xd1\x02\xa2s\x03]\xea\x12\xb9\xf1\xa2\xb3"

app/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ async def main():
4242
if_not_exists=True,
4343
)
4444
# Create a admin user in separate Sqlite DB
45-
if not await User.exists().where(User.email == "[email protected]"):
45+
if not await User.exists().where(User.email == os.environ["EMAIL"]):
4646
user = User(
4747
username=os.environ["USERNAME"],
4848
password=os.environ["PASSWORD"],
49-
49+
email=os.environ["EMAIL"],
5050
admin=True,
5151
active=True,
5252
superuser=True,

0 commit comments

Comments
 (0)