Skip to content

Commit

Permalink
Merge pull request #1186 from snipe/docker_fix2
Browse files Browse the repository at this point in the history
Fix for #1052 - hopefully make it less brittle in future as well.
  • Loading branch information
snipe committed Sep 21, 2015
2 parents d41c3fd + 49a20c7 commit 2df8c6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 23 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,10 @@ RUN a2enmod rewrite

############ INITIAL APPLICATION SETUP #####################

COPY docker/app_start.patch /tmp/app_start.patch

WORKDIR /var/www/html

#Patch bootstrap file
RUN patch -p1 < /tmp/app_start.patch
#Append to bootstrap file (less brittle than 'patch')
RUN sed -i 's/return $app;/$env="production";\nreturn $app;/' bootstrap/start.php

#copy all configuration files
COPY docker/*.php /var/www/html/app/config/production/
Expand Down
19 changes: 0 additions & 19 deletions docker/app_start.patch

This file was deleted.

0 comments on commit 2df8c6a

Please sign in to comment.