Commit
This commit is contained in:
parent
5eb769863d
commit
d0db7231f0
@ -1,7 +1,6 @@
|
||||
FROM alpine:latest
|
||||
FROM docker.io/alpine:latest
|
||||
|
||||
RUN apk update && \
|
||||
apk add nginx php81-fpm
|
||||
RUN apk update && apk add nginx php-fpm
|
||||
|
||||
RUN adduser -D -g 'www' www
|
||||
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||
Made by yours truly
|
||||
|
||||
# Docker install
|
||||
# Run with docker
|
||||
|
||||
docker build --no-cache -f ./Dockerfile --tag willy-club-website
|
||||
|
||||
docker run -dt -p 8080:8080 --name willy-club-website willy-club-website
|
@ -17,13 +17,9 @@ abstract class Route
|
||||
)) return;
|
||||
|
||||
// check if the route matches and add parameters if any
|
||||
$request_path = str_replace($_SERVER['SCRIPT_NAME'], '', $_SERVER['PHP_SELF']);
|
||||
if ($request_path === '') {
|
||||
$request_path = '/';
|
||||
}
|
||||
$args = [];
|
||||
$path_parts = explode('/', $path);
|
||||
$request_path_parts = explode('/', $request_path);
|
||||
$request_path_parts = explode('/', strtok($_SERVER["REQUEST_URI"], '?'));
|
||||
for ($i=0; $i < count($path_parts); $i++) {
|
||||
if (empty($path_parts[$i])) {
|
||||
continue;
|
||||
|
@ -1,2 +1,4 @@
|
||||
#!/bin/sh
|
||||
nginx && php-fpm81 && tail -f /var/log/nginx/error.log
|
||||
nginx
|
||||
php-fpm81
|
||||
tail -f /var/log/nginx/error.log
|
@ -7,11 +7,7 @@ body {
|
||||
color: #111;
|
||||
font-size: 1rem;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
line-height: 1.75;
|
||||
}
|
||||
h1 {
|
||||
margin-top: .5rem;
|
||||
margin-bottom: .5rem;
|
||||
line-height: 1.5;
|
||||
}
|
||||
a {
|
||||
color: blue;
|
||||
|
Loading…
Reference in New Issue
Block a user