fix: hardcode apache to port 8080 and expose it to ensure railway routes correctly
This commit is contained in:
@@ -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"]
|
||||||
|
|||||||
Reference in New Issue
Block a user