From 07ff0a4e6d30dff0aeb318d0e7cf6384e05c910a Mon Sep 17 00:00:00 2001 From: Norbert Szulc Date: Tue, 26 Jun 2018 14:00:05 +0200 Subject: [PATCH 1/6] Commands & info card (cherry picked from commit 7c94293) --- Pipfile | 4 ++++ README.md | 12 ++++++++---- whois/templates/landing.html | 3 ++- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/Pipfile b/Pipfile index 6105f90..025da7e 100644 --- a/Pipfile +++ b/Pipfile @@ -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 = "*" diff --git a/README.md b/README.md index cabcf58..0a58fcc 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/whois/templates/landing.html b/whois/templates/landing.html index 24f0ad3..482e980 100644 --- a/whois/templates/landing.html +++ b/whois/templates/landing.html @@ -37,7 +37,8 @@ {% endif %}
- Komenda na Slacku /ktohakuje + Komenda na Slacku /ktohakuje
+ Więcej instrukcji na stronie wiki
From 054c50c253382d2ffd95f9158122aa23e57ba3ed Mon Sep 17 00:00:00 2001 From: Norbert Szulc Date: Sat, 23 Jun 2018 18:41:52 +0200 Subject: [PATCH 2/6] Favico Some reformatting (cherry picked from commit 43fc16c) --- whois/static/favicon.ico | Bin 0 -> 1150 bytes whois/templates/base.html | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 whois/static/favicon.ico diff --git a/whois/static/favicon.ico b/whois/static/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..7306ce6f6ec14b08646cb8e56fa03453045c2720 GIT binary patch literal 1150 zcmd^6Icowz6rQMMSk^1L;)MaxsKIyy@xWVypcaZ2A~q4z*cn_TjaUW2!b)rf|E2q7 z-iU&2T6cK!cHaHHkFf`SWSQ~X%f1YZJu$`tT)2r_&UUUC!0Yvje??K?_xoY7Sm1WMHJ8f;r_%|e(FljbA!06jOD2=3)oN(B+ZYaqpm(uY z#CZIPL?VGwsdVD+Q@vhCKA%UU(Lgqvz3x1fN?|&kQXlmDeMr(H^!j(rV0hDXx(`j3 z6;Z3%Y>JswRYf!!z2=w8W$bo4L?RLF_j{=7H?NW7{$Gu;v6fC}FrUw1Hk-vfhr~=d=s}+{ZB}^uT`+sWKU~rS)>2$E!Y((5_Hbbx1!(=i6?WNo83QVzB4D0n8@pv4^ u;}Mlg + @@ -31,12 +32,12 @@ {% block header %}