add docker support :3
This commit is contained in:
11
Dockerfile
Normal file
11
Dockerfile
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
FROM php:8.3-apache
|
||||||
|
|
||||||
|
RUN a2enmod rewrite
|
||||||
|
|
||||||
|
COPY . /var/www/html
|
||||||
|
|
||||||
|
RUN sed -i 's|/var/www/html|/var/www/html/public|g' \
|
||||||
|
/etc/apache2/sites-available/000-default.conf
|
||||||
|
|
||||||
|
RUN sed -i 's|AllowOverride None|AllowOverride All|g' \
|
||||||
|
/etc/apache2/apache2.conf
|
||||||
4
public/.htaccess
Normal file
4
public/.htaccess
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
RewriteEngine On
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
|
RewriteRule ^ index.php [QSA,L]
|
||||||
@@ -6,7 +6,7 @@ class HomeController extends BaseController
|
|||||||
public function index(): void
|
public function index(): void
|
||||||
{
|
{
|
||||||
$this->render('home', [
|
$this->render('home', [
|
||||||
'title' => 'Willkommen'
|
'title' => 'meow :3'
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user