Add Laravel Envoy (#510)

Add laravel envoy
This commit is contained in:
Cristian Mello
2016-12-25 15:38:25 -02:00
committed by Philippe Trépanier
parent e78b3ff799
commit 33e8e91e49
3 changed files with 43 additions and 1 deletions

View File

@ -275,7 +275,22 @@ USER root
RUN echo "" >> ~/.bashrc && \
echo 'alias art="php artisan"' >> ~/.bashrc
#####################################
# Laravel Envoy:
#####################################
USER laradock
ARG INSTALL_LARAVEL_ENVOY=true
ENV INSTALL_LARAVEL_ENVOY ${INSTALL_LARAVEL_ENVOY}
RUN if [ ${INSTALL_LARAVEL_ENVOY} = true ]; then \
# Install the Laravel Envoy
echo "" >> ~/.bashrc && \
echo 'export PATH="~/.composer/vendor/bin:$PATH"' >> ~/.bashrc \
&& composer global require "laravel/envoy=~1.0" \
;fi
#
#--------------------------------------------------------------------------
# Final Touch