working api

This commit is contained in:
Ubuntu
2018-06-19 12:06:54 +00:00
parent 4078de9b66
commit 007063c868
4 changed files with 19 additions and 2 deletions

View File

@@ -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
View 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

View File

@@ -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 -