skript.cc/nextcloud-installer
Composer 安装命令:
composer require skript.cc/nextcloud-installer
包简介
A custom installer to handle installing Nextcloud with composer
README 文档
README
Composer installer for Nextcloud server and apps packages to install them at a location outside the vendor directory. Made to be used in conjuction with the Nextcloud Packages Composer Repository.
Installation
composer require skript.cc/nextcloud-installer
Usage
In your composer.json file you need to add the Nextcloud Packages Repo as custom repository.
{
"repositories": [{
"type": "composer",
"url": "https://skript-cc.gitlab.io/common/nextcloud-packages"
}]
}
Next, require the nextcloud/server package and run composer install.
composer require nextcloud/server
composer install
Customizing the installation directory
By default Nextcloud will be installed in the directory nextcloud/ inside your
project root. It is possible to customize this location by adding a custom
installer path. The following example will make Nextcloud install in the
directory public/.
{
"extra": {
"installer-paths": {
"public": ["type:nextcloud-server"]
}
}
}
It is also possible to modify the installation path of Nextcloud apps.
{
"extra": {
"installer-paths": {
"public": ["type:nextcloud-server"],
"public/apps-extra/{$name}": ["type:nextcloud-app"]
}
}
}
Keeping files inside Nextclouds installation directory
By default all files and directories in the Nextcloud installation directory
will be overwritten by the files that are provided by the nextcloud/server
package. For example, when you add a file nextcloud/.htaccess and then
run composer install (or update), your file gets overwritten by the .htaccess
file from the nextcloud package.
The installer comes preconfigured with two exceptions to this rule:
config/config.php and data/ will always be kept.
With a little bit of configuration in the composer.json file it is possible to add your own rules for keeping (and removing) files. The following example makes the .htaccess file that is added or modified by you persistent between updates and installs.
{
"extra": {
"nextcloud-installer": {
"keep": {
".htaccess": true
}
}
}
}
Files can also be removed from the installation directory by changing the value
of the filepath to false. When you do this in the example above there won't be
a .htaccess file present at all after the installation. By default
config/CAN_INSTALL and config/config.sample.php are removed.
Moving the configuration file out of the installation directory
With the keep configuration explained in the previous section it is possible to make configuration files persist between installations while being placed inside Nextclouds default configuration directory. When you don't like this, the installer also supports another option to persist configuration settings.
When you place a file config/server.php (relative to the project root) the
installer will symlink this file to Nextclouds configuration directory. Any
configuration setting defined in this file will override the setting from
Nextclouds default config/config.php.
skript.cc/nextcloud-installer 适用场景与选型建议
skript.cc/nextcloud-installer 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 35 次下载、GitHub Stars 达 0, 最近一次更新时间为 2019 年 10 月 29 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 skript.cc/nextcloud-installer 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 skript.cc/nextcloud-installer 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 35
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2019-10-29