From bf9bd34a8619bc3f71fd70c8a67616d3144eb702 Mon Sep 17 00:00:00 2001 From: Suriya Date: Wed, 29 Apr 2026 13:59:55 +0530 Subject: [PATCH] fix: update asset paths and switch to Apache on port 3000 --- Dockerfile | 21 ++- about_us.php | 12 +- blog_main.php | 2 +- blog_single_page.php | 24 +-- components/about.php | 4 +- components/blog_section.php | 18 +- components/get_in_touch.php | 10 +- components/loyaly-products.php | 54 +++--- components/partners.php | 26 +-- components/products_meet_the_crew.php | 22 +-- components/solutions.php | 34 ++-- components/testimonial.php | 2 +- contacts.php | 8 +- .../themes/aiero-dark/xmlrpc.php | 2 +- demo.artureanec.com/themes/aiero/xmlrpc.php | 2 +- .../themes/aiero/xmlrpc0db0.php | 2 +- faq.php | 6 +- includes/footer.php | 50 +++--- includes/head.php | 162 +++++++++--------- includes/header.php | 46 ++--- index.php | 38 ++-- info.php | 3 - solutions_page.php | 16 +- use_cases.php | 2 +- 24 files changed, 283 insertions(+), 283 deletions(-) delete mode 100644 info.php diff --git a/Dockerfile b/Dockerfile index 0275241..3c06452 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,17 @@ -FROM php:8.3-cli +FROM php:8.3-apache -# Copy the application files -COPY . /app -WORKDIR /app +# Suppress ServerName warning +RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf -# Set permissions -RUN chown -R www-data:www-data /app +# Increase PHP limits +RUN echo "memory_limit=512M" > /usr/local/etc/php/conf.d/custom.ini \ + && echo "max_execution_time=300" >> /usr/local/etc/php/conf.d/custom.ini -# Expose port 3000 (matching Dokploy configuration) +COPY . /var/www/html/ +RUN chown -R www-data:www-data /var/www/html + +# Hardcode Apache to listen on 3000 for Dokploy +RUN sed -i 's/80/3000/g' /etc/apache2/sites-available/000-default.conf /etc/apache2/ports.conf EXPOSE 3000 -# Start the built-in PHP server on port 3000 (listening on all interfaces) -CMD ["php", "-S", "0.0.0.0:3000", "-t", "/app"] +CMD ["apache2-foreground"] diff --git a/about_us.php b/about_us.php index ef7a28e..4016039 100644 --- a/about_us.php +++ b/about_us.php @@ -119,7 +119,7 @@
- +
- +
- +
- +
- + -
\ No newline at end of file +
diff --git a/components/loyaly-products.php b/components/loyaly-products.php index 61c1544..a710987 100644 --- a/components/loyaly-products.php +++ b/components/loyaly-products.php @@ -9,7 +9,7 @@
- +

@@ -39,9 +39,9 @@