An development apps environment for NextCloud.
Edit the .env
file to set your database password and the version of NextCloud that you will use.
VERSION
To this environment get a or branch of NextCloud server repository.
If you need custom settings in PHP, change the file .docker/app/config/php.ini
.
docker-compsoe up
Access in the browser using the port mapped in docker-compose.yml
.
Uncheck to setup extra apps to create a clean instalation of NextCloud for development.
After finish the setup, access this url: https://localhost/settings/admin/overview.
If is necessary run any occ command, run like this:
docker exec -u www-data -it nextcloud_app_1 ./occ db:add-missing-indices
docker exec -u www-data -it nextcloud_app_1 ./occ db:convert-filecache-bigint
Follow the instructions in official NextCloud app development page.
After create the folder to your app, in terminal, change the owner of the folder to your user:
sudo chown -R $USER:$USER nextcloud/apps/yourappfolder
Go to your app folder and initialize versioning.
cd nextcloud/apps/yourappfolder
Good work!