Skip to content

Commit

Permalink
Merge 4d60c7e into e6d1205
Browse files Browse the repository at this point in the history
  • Loading branch information
novski committed May 8, 2018
2 parents e6d1205 + 4d60c7e commit 929bfda
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand All @@ -236,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:

Expand All @@ -256,14 +255,17 @@ 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`.**

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

1. Create and configure the nginx server

sudo vim /etc/nginx/sites-available/babybuddy
sudo ln -s /etc/nginx/sites-available/babybuddy /etc/nginx/sites-enabled/babybuddy
sudo service nginx restart
sudo editor /etc/nginx/sites-available/babybuddy

Example config:

Expand All @@ -284,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
Expand Down

0 comments on commit 929bfda

Please sign in to comment.