Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 847c91b1 authored by Akhil's avatar Akhil 🙂
Browse files

Local dev fixes

parent e675ccca
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -17,6 +17,8 @@ We suggest you use our [ecloud-selfhosting](https://gitlab.e.foundation/e/infra/
- Create a copy of the `ecloud_dev_example` directory locally where you want to install an `ecloud` development environment
- Use `cd` or file manager to enter the above directory
- Add a `.env` file with chosen attributes(example [.env](./ecloud_dev_example/.dev.env) file here, you can rename to `.env` to use same defaults)
- Set correct permissions to volumes:
  - `chown -R '33':'33' volumes/nextcloud/{html,data,log}`
- Pull the images and up the containers
  - `docker-compose pull`
  - `docker-compose up -d`
@@ -26,7 +28,6 @@ We suggest you use our [ecloud-selfhosting](https://gitlab.e.foundation/e/infra/
- Set config values, disable integrity check and refresh theme cache:

  - `docker exec -u www-data ecloud /var/www/html/occ config:system:set theme --value='eCloud'`
  - `docker exec -u www-data ecloud /var/www/html/occ config:system:set datadirectory --value='/var/www/data'`
  - `docker exec -u www-data ecloud /var/www/html/occ config:system:set logfile --value='/var/www/log/nextcloud.log'`
  - `docker exec -u www-data ecloud /var/www/html/occ config:system:set loglevel --value='2' --type=integer`
  - `docker exec -u www-data ecloud /var/www/html/occ config:system:set integrity.check.disabled --value='true' --type=boolean`
@@ -52,11 +53,8 @@ We suggest you use our [ecloud-selfhosting](https://gitlab.e.foundation/e/infra/
  - `docker exec -u www-data ecloud /var/www/html/occ app:enable integration_google`
  - To install more apps, use `docker exec -u www-data ecloud /var/www/html/occ app:install $app` where `$app` is the name of the app

- Add a new group in your bash shell to make the `html` folder editable(run commands with `sudo` if required):
  - `groupadd ecloud`
  - `usermod -a -G ecloud http`
  - `usermod -a -G ecloud $USER`
  - `chgrp -R ecloud volumes/nextcloud/html`
- To make the `html` folder editable to current user(`$USER`)(run commands with `sudo` if required):
  - `usermod -a -G '33' $USER`
  - `chmod -R g+w volumes/nextcloud/html`
  - Log out and log back into your system

+1 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ services:
      - MYSQL_HOST=mariadb
      - NEXTCLOUD_ADMIN_USER=${NEXTCLOUD_ADMIN_USER}
      - NEXTCLOUD_ADMIN_PASSWORD=${NEXTCLOUD_ADMIN_PASSWORD}
      - NEXTCLOUD_DATA_DIR=/var/www/data
      - NEXTCLOUD_EMAIL_RECOVERY_APP_SECRET=${NEXTCLOUD_EMAIL_RECOVERY_APP_SECRET}
      - ECLOUD_ACCOUNTS_SECRET=${ECLOUD_ACCOUNTS_SECRET}