Add .htaccess file, route now working
continuous-integration/drone/push Build is passing Details

master
dohodin 2 years ago
parent f4e437c7d1
commit faf20c0dc8

@ -1,6 +1,10 @@
FROM shinsenter/slim:latest
FROM php:8.1-apache
RUN apt-get update && apt-get install -y git
RUN docker-php-ext-install pdo pdo_mysql
COPY ./script /var/www/html
WORKDIR /var/www/html/Config
RUN composer update && composer install
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN composer update && composer install
RUN a2enmod rewrite
RUN a2enmod actions
RUN service apache2 restart

@ -0,0 +1,4 @@
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]

@ -14,7 +14,7 @@ use Psr\Http\Message\ResponseInterface as Response;
use Psr\Http\Message\ServerRequestInterface as Request;
use Slim\Factory\AppFactory;
require 'Config/vendor/autoload.php';
require './Config/vendor/autoload.php';
/**
* Instantiate App

Loading…
Cancel
Save