summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2018-08-12 12:42:58 +0200
committermsquare <msquare@notrademark.de>2018-08-12 12:42:58 +0200
commitdf30f7d5d89d8de3f61905d8e25eb361a06faa7f (patch)
treec9c07c9133b266224f1e91e7aabc4c40bf27f67d /README.md
parentc55ae7c3190e48180371bab8f4d7ab4c5726ff13 (diff)
parentb409d2986fcca5bcafdad4b3b33094c12d8530a6 (diff)
merge pr #427: Use npm to handle frontend dependencies
Diffstat (limited to 'README.md')
-rw-r--r--README.md12
1 files changed, 10 insertions, 2 deletions
diff --git a/README.md b/README.md
index cb234777..248adff0 100644
--- a/README.md
+++ b/README.md
@@ -13,13 +13,16 @@ To report bugs use [engelsystem/issues](https://github.com/engelsystem/engelsyst
* PHP >= 7.0
* MySQL-Server >= 5.5 or MariaDB-Server >= 5.5
* Webserver, i.e. lighttpd, nginx, or Apache
+ * Node >= 8 (Development/Building only)
+ * Yarn (Development/Building only)
### Directions:
* Clone the master branch: `git clone https://github.com/engelsystem/engelsystem.git`
- * Install [Composer](https://getcomposer.org/download/)
+ * Install [Composer](https://getcomposer.org/download/) and [Yarn](https://yarnpkg.com/en/docs/install) (which requires [Node.js](https://nodejs.org/en/download/package-manager/))
* Install project dependencies:
```bash
composer install
+ yarn
```
On production systems it is recommended to use
```bash
@@ -27,6 +30,11 @@ To report bugs use [engelsystem/issues](https://github.com/engelsystem/engelsyst
composer dump-autoload --optimize
```
to install the engelsystem
+ * Build the frontend assets
+ ```bash
+ yarn build
+ ```
+
* The webserver must have write access to the ```import``` directory and read access for all other directories
* The webserver must point to the ```public``` directory.
* The webserver must read the ```.htaccess``` file and ```mod_rewrite``` must be enabled
@@ -69,7 +77,7 @@ To use the deployment features the following secret variables need to be defined
```bash
SSH_PRIVATE_KEY # The ssh private key
STAGING_REMOTE # The staging server, e.g. user@remote.host
-STAGING_REMOTE_PATH # The psth on the remote server, e.g. /var/www/engelsystem
+STAGING_REMOTE_PATH # The path on the remote server, e.g. /var/www/engelsystem
PRODUCTION_REMOTE # Same as STAGING_REMOTE but for the production environment
PRODUCTION_REMOTE_PATH # Same as STAGING_REMOTE_PATH but for the production environment
```