contao läuft und absolute basic seite ist erstellt
Frontend: http://localhost:8080/default Backend: http://localhost:8080/contao
This commit is contained in:
1 parent
8865b806df
commit
1c1bf84b7a
5 files changed
+25
-10
No files matched your search
@@ -3,5 +3,9 @@
|
|||||||
node_modules
|
node_modules
|
||||||
vendor
|
vendor
|
||||||
var
|
var
|
||||||
public/assets/js
|
public/assets
|
||||||
|
public/bundles
|
||||||
|
public/share
|
||||||
|
public/system
|
||||||
|
public/vendor
|
||||||
*.log
|
*.log
|
||||||
@@ -16,6 +16,9 @@ Beim ersten Start eines frischen Clones erzeugt Contao die benötigten Laufzeitv
|
|||||||
docker compose exec app vendor/bin/contao-setup --no-interaction --env=dev
|
docker compose exec app vendor/bin/contao-setup --no-interaction --env=dev
|
||||||
docker compose exec app chown -R www-data:www-data var public
|
docker compose exec app chown -R www-data:www-data var public
|
||||||
docker compose exec app vendor/bin/contao-console contao:migrate --no-interaction
|
docker compose exec app vendor/bin/contao-console contao:migrate --no-interaction
|
||||||
|
|
||||||
|
neuen admin account anlegen:
|
||||||
|
docker compose exec app vendor/bin/contao-console contao:user:create --admin
|
||||||
```
|
```
|
||||||
|
|
||||||
- Website/CMS: <http://localhost:8080>
|
- Website/CMS: <http://localhost:8080>
|
||||||
@@ -29,10 +32,15 @@ npm install
|
|||||||
npm run build
|
npm run build
|
||||||
```
|
```
|
||||||
|
|
||||||
**Dann die Seite öffnen:**
|
**Seite öffnen:**
|
||||||
http://localhost:8080/perspektivwerk/
|
|
||||||
|
|
||||||
## Abgrenzung zur Originalseite
|
Frontend: http://localhost:8080/default
|
||||||
|
Backend: http://localhost:8080/contao
|
||||||
|
|
||||||
|
|
||||||
|
## HTML Nachbau der Perpektivwerkseite
|
||||||
|
|
||||||
|
http://localhost:8080/perspektivwerk/
|
||||||
|
|
||||||
Die genaue Contao-, PHP- und Template-Version der öffentlichen Seite ist nicht verlässlich aus dem ausgelieferten HTML ableitbar. Das Setup bildet daher die wahrscheinlichste Komponentenfamilie nach; es ist kein Dump der Produktivinstallation. IONOS/Hosting, Matomo-Konfiguration, Inhalte, Templates und Erweiterungen müssen bei Bedarf separat ergänzt werden.
|
Die genaue Contao-, PHP- und Template-Version der öffentlichen Seite ist nicht verlässlich aus dem ausgelieferten HTML ableitbar. Das Setup bildet daher die wahrscheinlichste Komponentenfamilie nach; es ist kein Dump der Produktivinstallation. IONOS/Hosting, Matomo-Konfiguration, Inhalte, Templates und Erweiterungen müssen bei Bedarf separat ergänzt werden.
|
||||||
|
|
||||||
|
|||||||
@@ -9,10 +9,17 @@ services:
|
|||||||
APP_ENV: dev
|
APP_ENV: dev
|
||||||
CONTAO_ENVIRONMENT: dev
|
CONTAO_ENVIRONMENT: dev
|
||||||
DATABASE_URL: mysql://perspektivwerk:perspektivwerk@db:3306/perspektivwerk?serverVersion=mariadb-10.11.0
|
DATABASE_URL: mysql://perspektivwerk:perspektivwerk@db:3306/perspektivwerk?serverVersion=mariadb-10.11.0
|
||||||
|
command:
|
||||||
|
- sh
|
||||||
|
- -c
|
||||||
|
- chown -R www-data:www-data /var/www/html/var /var/www/html/system/tmp && chmod 775 /var/www/html/system/tmp && exec apache2-foreground
|
||||||
volumes:
|
volumes:
|
||||||
- ./:/var/www/html
|
- ./:/var/www/html
|
||||||
- contao_vendor:/var/www/html/vendor
|
- contao_vendor:/var/www/html/vendor
|
||||||
- contao_var:/var/www/html/var
|
- contao_var:/var/www/html/var
|
||||||
|
# Windows-Bind-Mounts können die POSIX-Schreibrechte für Apache verlieren.
|
||||||
|
# Contao legt hier beim Import temporäre Dateien ab.
|
||||||
|
- contao_system_tmp:/var/www/html/system/tmp
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
db:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
@@ -47,3 +54,4 @@ volumes:
|
|||||||
mariadb_data:
|
mariadb_data:
|
||||||
contao_vendor:
|
contao_vendor:
|
||||||
contao_var:
|
contao_var:
|
||||||
|
contao_system_tmp:
|
||||||
@@ -6,6 +6,7 @@ RUN apt-get update \
|
|||||||
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
|
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
|
||||||
&& docker-php-ext-install -j"$(nproc)" intl gd mysqli pdo_mysql zip opcache \
|
&& docker-php-ext-install -j"$(nproc)" intl gd mysqli pdo_mysql zip opcache \
|
||||||
&& a2enmod rewrite headers expires \
|
&& a2enmod rewrite headers expires \
|
||||||
|
&& echo "memory_limit=256M" > /usr/local/etc/php/conf.d/contao-memory-limit.ini \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
|
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
|
||||||
@@ -16,7 +17,5 @@ WORKDIR /var/www/html
|
|||||||
COPY composer.json ./
|
COPY composer.json ./
|
||||||
RUN if [ -f composer.json ]; then composer install --no-interaction --prefer-dist --no-progress; fi
|
RUN if [ -f composer.json ]; then composer install --no-interaction --prefer-dist --no-progress; fi
|
||||||
|
|
||||||
COPY . .
|
|
||||||
|
|
||||||
RUN mkdir -p var public/assets \
|
RUN mkdir -p var public/assets \
|
||||||
&& chown -R www-data:www-data var public
|
&& chown -R www-data:www-data var public
|
||||||
@@ -26,10 +26,6 @@
|
|||||||
RewriteCond %{HTTP:Authorization} .
|
RewriteCond %{HTTP:Authorization} .
|
||||||
RewriteRule ^ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
|
RewriteRule ^ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
|
||||||
|
|
||||||
# Static mockup used during local booking UI development.
|
|
||||||
RewriteRule ^perspektivwerk/?$ perspektivwerk/index.html [L]
|
|
||||||
RewriteRule ^(?:index\.html)?$ perspektivwerk/index.html [L]
|
|
||||||
|
|
||||||
# Redirect to URI without front controller to prevent duplicate content
|
# Redirect to URI without front controller to prevent duplicate content
|
||||||
# (with and without `/index.php`). Only do this redirect on the initial
|
# (with and without `/index.php`). Only do this redirect on the initial
|
||||||
# rewrite by Apache and not on subsequent cycles. Otherwise, we would get an
|
# rewrite by Apache and not on subsequent cycles. Otherwise, we would get an
|
||||||
|
|||||||
Reference in new issue
Block a user