From 03247227e20f53086fc9a6f1940fd850853a421d Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sun, 10 Mar 2019 00:20:04 +0000 Subject: [PATCH] Installation instructions: Move chown to after client app build --- README.md | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 372161d..ff06edd 100644 --- a/README.md +++ b/README.md @@ -43,21 +43,14 @@ git clone https://github.com/ConnectedHumber/Air-Quality-Web.git ``` -2. Change the ownership to allow your web server user to access the created directory. Usually, the web server will be running under the `www-data` user: - -```bash -sudo chown -R www-data:www-data path/to/Air-Quality-Web -``` - - -3. `cd` into the root of the cloned repository. Then install the dependencies (these are installed locally): +2. `cd` into the root of the cloned repository. Then install the dependencies (these are installed locally): ```bash ./build setup setup-dev ``` -4. Build the client-side application: +3. Build the client-side application: ```bash # For development, run this: @@ -68,6 +61,12 @@ NODE_ENV=production ./build client ./build client-watch ``` +4. Change the ownership to allow your web server user to access the created directory. Usually, the web server will be running under the `www-data` user: + +```bash +sudo chown -R www-data:www-data path/to/Air-Quality-Web +``` + 5. Edit `data/settings.toml` to enter your database credentials.