Skip to content

Commit 03bba8d

Browse files
authored
Merge pull request laradock#400 from LaraDock/appleboy-patch-1
fix phpunit path for multiple project.
2 parents f630970 + b6c7746 commit 03bba8d

8 files changed

Lines changed: 11 additions & 11 deletions

File tree

apache2/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ ARG PHP_SOCKET=php-fpm:9000
66

77
ENV WEB_PHP_SOCKET=$PHP_SOCKET
88

9-
ENV WEB_DOCUMENT_ROOT=/var/www/laravel/public
9+
ENV WEB_DOCUMENT_ROOT=/var/www/public
1010

1111
EXPOSE 80 443
1212

13-
WORKDIR /var/www/laravel/public
13+
WORKDIR /var/www/public
1414

1515
ENTRYPOINT ["/opt/docker/bin/entrypoint.sh"]
1616

caddy/Caddyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Docs: https://caddyserver.com/docs/caddyfile
22
0.0.0.0:80
3-
root /var/www/laravel/public
3+
root /var/www/public
44
fastcgi / php-fpm:9000 php {
55
index index.php
66
}

caddy/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ RUN curl --silent --show-error --fail --location \
1919

2020
EXPOSE 80 443 2015
2121

22-
WORKDIR /var/www/laravel/public
22+
WORKDIR /var/www/public
2323

2424
CMD ["/usr/bin/caddy", "-conf", "/etc/Caddyfile"]

hhvm/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ RUN apt-get update -y \
1010
&& apt-get clean \
1111
&& rm -rf /var/lib/apt/lists/*
1212

13-
RUN mkdir -p /var/www/laravel
13+
RUN mkdir -p /var/www
1414

1515
ADD server.ini /etc/hhvm/server.ini
1616

1717
RUN usermod -u 1000 www-data
1818

19-
WORKDIR /var/www/laravel
19+
WORKDIR /var/www
2020

2121
CMD ["/usr/bin/hhvm", "-m", "server", "-c", "/etc/hhvm/server.ini"]
2222

hhvm/server.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ hhvm.log.level = Error
1212
hhvm.log.header = true
1313
hhvm.log.access[default][file] = /var/log/hhvm/access.log
1414
hhvm.log.access[default][format] = "%h %l %u %t \"%r\" %>s %b"
15-
hhvm.server.source_root=/var/www/laravel/public
15+
hhvm.server.source_root=/var/www/public
1616
hhvm.repo.central.path = /var/run/hhvm/hhvm.hhbc
1717

1818
; Uncomment to log to files instead of STDOUT

production-docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ services:
4545
links:
4646
- workspace
4747

48-
### Laravel Application Code Container ######################
48+
### Application Code Container ######################
4949

5050
volumes_source:
5151
image: tianon/true
5252
volumes:
53-
- ../:/var/www/laravel
53+
- ../:/var/www
5454

5555
### Databases Data Container ################################
5656

workspace/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ RUN if [ ${INSTALL_XDEBUG} = true ]; then \
9191
apt-get update && \
9292
apt-get install -y --force-yes php7.0-xdebug && \
9393
sed -i 's/^/;/g' /etc/php/7.0/cli/conf.d/20-xdebug.ini && \
94-
echo "alias phpunit='php -dzend_extension=xdebug.so /var/www/laravel/vendor/bin/phpunit'" >> ~/.bashrc \
94+
echo "alias phpunit='php -dzend_extension=xdebug.so /var/www/vendor/bin/phpunit'" >> ~/.bashrc \
9595
;fi
9696
# ADD for REMOTE debugging
9797
COPY ./xdebug.ini /etc/php/7.0/cli/conf.d/xdebug.ini

workspace/crontab/root

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* * * * * php /var/www/laravel/artisan schedule:run >> /dev/null 2>&1
1+
* * * * * php /var/www/artisan schedule:run >> /dev/null 2>&1

0 commit comments

Comments
 (0)