change permalinks to enable rest API; split backend and frontend
This commit is contained in:
@@ -12,12 +12,17 @@ RUN docker-php-ext-install pdo pdo_mysql mysqli
|
||||
RUN a2enmod rewrite
|
||||
|
||||
COPY docker/php/apache2.conf /etc/apache2/
|
||||
COPY docker/php/backend.conf /etc/apache2/sites-available/
|
||||
COPY docker/php/frontend.conf /etc/apache2/sites-available/
|
||||
|
||||
COPY backend /var/www/html
|
||||
RUN rm /var/www/html/index.php
|
||||
RUN ln -s /etc/apache2/sites-available/frontend.conf /etc/apache2/sites-enabled && ln -s /etc/apache2/sites-available/backend.conf /etc/apache2/sites-enabled/backend.conf
|
||||
|
||||
COPY backend /var/www/backend
|
||||
|
||||
RUN chown -R www-data:www-data /var/www/html /var/www/backend
|
||||
|
||||
COPY frontend /home/wiaas/frontend
|
||||
|
||||
WORKDIR /home/wiaas/frontend
|
||||
RUN npm install && npm rebuild node-sass --force && npm run build
|
||||
RUN cp -r build/* /var/www/html/
|
||||
RUN cp -r build/* /var/www/html/
|
||||
|
||||
Reference in New Issue
Block a user