Skip to content

Commit

Permalink
Commands & info card
Browse files Browse the repository at this point in the history
  • Loading branch information
not7cd committed Jun 26, 2018
1 parent 43fc16c commit 7c94293
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
4 changes: 4 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"

[scripts]
serve = "python -m whois"
"init-db" = "python helpers/db_create.py"

[dev-packages]
pytest = "*"
freezegun = "*"
Expand Down
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,29 @@

- Dependencies

```bash
```shell
pipenv install
```

- Create database

```bash
```shell
pipenv run python helpers/db_create.py
# or
pipenv run init-db
```

## Running

```bash
```shell
pipenv run python -m whois
# or
pipenv run serve
```

## Deployment

```bash
```shell
docker-compose build
# first run, later it should just connect to existing db
docker-compose run web python3 helpers/db_create.py
Expand Down
3 changes: 2 additions & 1 deletion whois/templates/landing.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
{% endif %}
<div class="card text-black">
<div class="card-body">
Komenda na Slacku <kbd>/ktohakuje</kbd>
Komenda na Slacku <kbd>/ktohakuje</kbd><br>
Więcej instrukcji na <a href="https://wiki.hs3.pl/projekty/whois">stronie wiki</a>
</div>
</div>
</div>
Expand Down

0 comments on commit 7c94293

Please sign in to comment.