picture-mike/joomla-installer

命令行工具,用于安装或更新包括Docker在内的Joomla网站

0.4.9 2023-06-26 12:50 UTC

This package is auto-updated.

Last update: 2024-09-30 01:46:59 UTC


README

for-the-badge for-the-badge

这个Joomla工具处理Docker容器的设置,创建Joomla V4的新安装或更新当前版本到最新版本。

要求

安装

  1. .env.example重命名为.env
  2. .env文件中输入正确的项目信息。
  3. 运行$ docker ...

此命令将创建一个新的带有预定义信息的Docker容器。Docker将自动运行$ composer install来安装此安装程序。

手动运行安装程序

php vendor/bin/console picturae:install

安装流程

  1. 安装或更新
    1. 安装
      1. 下载Joomla V4.*的最新版本
      2. 解压下载的包
      3. 使用Joomla-CLI安装下载的包
      4. 删除Joomla安装文件
      5. 将Joomla安装移动到项目的./public文件夹
      6. 安装NPM
      7. 安装Vite进行资源构建
    2. 更新
      1. 使用Joomla-CLI更新当前版本
  2. 最后,运行$ docker up并在https://website-name.test下提供服务

构建资源(测试)

cd src/templates/${TEMPLATE_FOLDER}

npm install

npm run build

模板结构

如果这是网站的新安装,此脚本还会创建一个带有基本设置的starter-template。此启动模板的信息将从安装期间使用的.env文件中获取。

/${BUILD_TARGET}
   /administrator
   /components
   /language
   /modules
   /plugins
   /templates
      /${TEMPLATE_NAME}
         ...
         ... // front-end structure for Vite.js

为了使启动模板与Joomla安装一起工作,我们创建从./public/templates./${BUILD_TARGET}/templates/${TEMPLATE_NAME}symlink

适用于Joomla 4的可用包

尚无可用包。