Skip to content

Commit

Permalink
build: correct some build commands
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethTrecy committed Jun 15, 2024
1 parent ddc1d8a commit fda7363
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ RUN apt-get update && apt-get install -y \
RUN echo "ServerName server.peratorakka.local" >> /etc/apache2/apache2.conf

ENV APACHE_DOCUMENT_ROOT=/var/www/html/public
RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf
RUN sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
RUN sed -ri -e 's!/var/www/html!$APACHE_DOCUMENT_ROOT!g' /etc/apache2/sites-available/*.conf
RUN sed -ri -e 's!/var/www/!$APACHE_DOCUMENT_ROOT!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf

# 3. mod_rewrite for URL rewrite and mod_headers for .htaccess extra headers like Access-Control-Allow-Origin-
RUN a2enmod rewrite headers
Expand Down Expand Up @@ -159,7 +159,7 @@ RUN /usr/bin/composer install
RUN sudo chmod -R a+rw /var/www/html/vendor

# 5. Migrate all tables
RUN /usr/bin/composer run migrate:all
RUN /usr/bin/composer run seed:initial

# 6. Restart HTTP service to apply changes
RUN service apache2 restart

0 comments on commit fda7363

Please sign in to comment.