fix: hardcode apache to port 8080 and expose it to ensure railway routes correctly

This commit is contained in:
2026-04-29 13:43:59 +05:30
parent 2a9459b8d2
commit 9571041c23

View File

@@ -6,6 +6,8 @@ COPY . /var/www/html/
# Ensure proper permissions # Ensure proper permissions
RUN chown -R www-data:www-data /var/www/html RUN chown -R www-data:www-data /var/www/html
# Apache uses port 80 by default, which Railway detects automatically. # Change Apache to listen on port 8080 instead of 80
# We just need to start it. RUN sed -i 's/80/8080/g' /etc/apache2/sites-available/000-default.conf /etc/apache2/ports.conf
EXPOSE 8080
CMD ["apache2-foreground"] CMD ["apache2-foreground"]