New project structure #6

Merged
akrdzic merged 24 commits from new-project-structure into master 2018-07-31 13:43:29 +02:00
Showing only changes of commit ff693b9a76 - Show all commits

View File

@@ -53,21 +53,21 @@ Wiaas implementation based on wordpress [woocommerce](https://woocommerce.com/)
1) Environment variables
For handling environment variables during local development we use `dotenv` library which will load all variables from `local.env` file
if such file is present. These variables will then be accessible inside wordpress.
For handling environment variables during local development we use `dotenv` library which will load all variables from `local.env` file
if such file is present. These variables will then be accessible inside wordpress.
cp environment.env local.env
Update `local.env` with your local environment variables.
Update `local.env` with your local environment variables.
2) Apache
Point your apache server to `new-wiaas/backend` by updating apache default host files to point to it.
(do not copy folder content to `/var/www/html`, since then dotenv will not be able to load `local.env` file since it is placed one folder above.)
Point your apache server to `new-wiaas/backend` by updating apache default host files to point to it.
(do not copy folder content to `/var/www/html`, since then dotenv will not be able to load `local.env` file since it is placed one folder above.)
3) Wordpress
Run setup commands to install wordpress and required plugins with composer:
Run setup commands to install wordpress and required plugins with composer:
cd backend
composer install