working api
This commit is contained in:
@@ -6,5 +6,6 @@ RUN a2enmod rewrite
|
||||
COPY docker/php/apache2.conf /etc/apache2/
|
||||
|
||||
COPY backend /var/www/html
|
||||
COPY docker/php/htaccess /var/www/.htaccess
|
||||
|
||||
RUN chown -R www-data:www-data /var/www/html
|
||||
|
||||
File diff suppressed because one or more lines are too long
16
docker/php/htaccess
Normal file
16
docker/php/htaccess
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
# BEGIN WordPress
|
||||
RewriteEngine On
|
||||
RewriteBase /
|
||||
RewriteRule ^index\.php$ - [L]
|
||||
|
||||
# add a trailing slash to /wp-admin
|
||||
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
|
||||
|
||||
RewriteCond %{REQUEST_FILENAME} -f [OR]
|
||||
RewriteCond %{REQUEST_FILENAME} -d
|
||||
RewriteRule ^ - [L]
|
||||
RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
|
||||
RewriteRule ^(.*\.php)$ wp/$1 [L]
|
||||
RewriteRule . index.php [L]
|
||||
# END WordPress
|
||||
@@ -2,7 +2,7 @@ FROM php:7.0-apache
|
||||
|
||||
ENV REACT_APP_TEST_URL=http://localhost:8000/api-wiaas \
|
||||
REACT_APP_PROD_URL=http://localhost:8000/api-wiaas \
|
||||
REACT_APP_DEV_URL=http://next.wiaas.saburly.com/api-wiaas
|
||||
REACT_APP_DEV_URL=http://next.wiaas.saburly.com/api
|
||||
|
||||
RUN apt-get update && apt-get install -y git unzip gnupg
|
||||
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
|
||||
|
||||
Reference in New Issue
Block a user