From 675d237bd44a6b8d6428999028d02a125b9813e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Ho=CC=88rler?= Date: Mon, 7 May 2018 22:56:11 +0200 Subject: [PATCH 1/7] added the essential command to make it work. pipenv shell :-) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index d532eb73..7707f335 100644 --- a/README.md +++ b/README.md @@ -210,6 +210,7 @@ Python 3.x, nginx, uwsgi and sqlite and should be sufficient for a few users 1. Initiate the Python environment pipenv install --three --dev + pipenv shell 1. Build static assets From 5469ace771c811a0e32377f95cbb6d16e3859cb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Ho=CC=88rler?= Date: Mon, 7 May 2018 22:57:00 +0200 Subject: [PATCH 2/7] split the commands to ensure a correct flow and change vim to editor --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7707f335..146a3563 100644 --- a/README.md +++ b/README.md @@ -237,8 +237,6 @@ Python 3.x, nginx, uwsgi and sqlite and should be sufficient for a few users 1. Create and configure the uwsgi app sudo editor /etc/uwsgi/apps-available/babybuddy.ini - sudo ln -s /etc/uwsgi/apps-available/babybuddy.ini /etc/uwsgi/apps-enabled/babybuddy.ini - sudo service uwsgi restart Example config: @@ -257,12 +255,15 @@ Python 3.x, nginx, uwsgi and sqlite and should be sufficient for a few users See the [uWSGI documentation](http://uwsgi-docs.readthedocs.io/en/latest/) for more advanced configuration details. - **Note: Find the location of the pipenv virtual environment for the + **Note: Find the location of the pipenv virtual environment for the `virtualenv` parameter with the command `pipenv --venv`.** + sudo ln -s /etc/uwsgi/apps-available/babybuddy.ini /etc/uwsgi/apps-enabled/babybuddy.ini + sudo service uwsgi restart + 1. Create and configure the nginx server - sudo vim /etc/nginx/sites-available/babybuddy + sudo editor /etc/nginx/sites-available/babybuddy sudo ln -s /etc/nginx/sites-available/babybuddy /etc/nginx/sites-enabled/babybuddy sudo service nginx restart From 0725f6b9c16c558075198fc9958c634285759124 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Ho=CC=88rler?= Date: Mon, 7 May 2018 23:00:12 +0200 Subject: [PATCH 3/7] correct the indent for correct md displaying of codeblock --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 146a3563..c82bd558 100644 --- a/README.md +++ b/README.md @@ -258,8 +258,8 @@ Python 3.x, nginx, uwsgi and sqlite and should be sufficient for a few users **Note: Find the location of the pipenv virtual environment for the `virtualenv` parameter with the command `pipenv --venv`.** - sudo ln -s /etc/uwsgi/apps-available/babybuddy.ini /etc/uwsgi/apps-enabled/babybuddy.ini - sudo service uwsgi restart + sudo ln -s /etc/uwsgi/apps-available/babybuddy.ini /etc/uwsgi/apps-enabled/babybuddy.ini + sudo service uwsgi restart 1. Create and configure the nginx server From 78689adbee1e170257d5b8e75b881df7c4b564bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Ho=CC=88rler?= Date: Mon, 7 May 2018 23:02:03 +0200 Subject: [PATCH 4/7] describe the lines beneth. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index c82bd558..44145e92 100644 --- a/README.md +++ b/README.md @@ -258,6 +258,8 @@ Python 3.x, nginx, uwsgi and sqlite and should be sufficient for a few users **Note: Find the location of the pipenv virtual environment for the `virtualenv` parameter with the command `pipenv --venv`.** + Symlink it and restart: + sudo ln -s /etc/uwsgi/apps-available/babybuddy.ini /etc/uwsgi/apps-enabled/babybuddy.ini sudo service uwsgi restart From 888c6fa11cb7ba66cfbf8f2d406bdc17e84c8544 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Ho=CC=88rler?= Date: Tue, 8 May 2018 06:50:55 +0200 Subject: [PATCH 5/7] create new enumeration --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 44145e92..01ff034f 100644 --- a/README.md +++ b/README.md @@ -258,7 +258,7 @@ Python 3.x, nginx, uwsgi and sqlite and should be sufficient for a few users **Note: Find the location of the pipenv virtual environment for the `virtualenv` parameter with the command `pipenv --venv`.** - Symlink it and restart: +1. Symlink config and restart uWSGI: sudo ln -s /etc/uwsgi/apps-available/babybuddy.ini /etc/uwsgi/apps-enabled/babybuddy.ini sudo service uwsgi restart From e6055ea668acf996569296ca4add5873c5b4e09f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Ho=CC=88rler?= Date: Tue, 8 May 2018 06:51:26 +0200 Subject: [PATCH 6/7] split same as uWSGI --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 01ff034f..33677bc7 100644 --- a/README.md +++ b/README.md @@ -266,8 +266,6 @@ Python 3.x, nginx, uwsgi and sqlite and should be sufficient for a few users 1. Create and configure the nginx server sudo editor /etc/nginx/sites-available/babybuddy - sudo ln -s /etc/nginx/sites-available/babybuddy /etc/nginx/sites-enabled/babybuddy - sudo service nginx restart Example config: @@ -288,6 +286,11 @@ Python 3.x, nginx, uwsgi and sqlite and should be sufficient for a few users See the [nginx documentation](https://nginx.org/en/docs/) for more advanced configuration details. +1. Symlink config and restart NGINX: + + sudo ln -s /etc/nginx/sites-available/babybuddy /etc/nginx/sites-enabled/babybuddy + sudo service nginx restart + 1. That's it (hopefully)! :tada: ## Configuration From 4d60c7eeb480b2bab38016a7e6c57bf57cf8b921 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Ho=CC=88rler?= Date: Tue, 8 May 2018 06:54:21 +0200 Subject: [PATCH 7/7] add dependency --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 33677bc7..c6ce41d0 100644 --- a/README.md +++ b/README.md @@ -180,7 +180,7 @@ Python 3.x, nginx, uwsgi and sqlite and should be sufficient for a few users 1. Install Python 3.x, pip, nginx and uwsgi - sudo apt-get install python3 python3-pip nginx uwsgi uwsgi-plugin-python3 git + sudo apt-get install python3 python3-pip nginx uwsgi uwsgi-plugin-python3 git libopenjp2-7-dev 1. Default python3 to python for this session