remove build frontend because too slow

fix public file 404
This commit is contained in:
Jack Goh
2018-08-07 19:28:50 +08:00
parent 12213d9505
commit e2ae54a8eb
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ staging:
- chmod 400 ~/.ssh/id_rsa
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
script:
- ssh izyim@40.76.84.105 "cd exchange && git pull origin master && git add . && git commit -am "merge staging" && sudo docker-compose -f docker-prod.yml build && sudo docker-compose -f docker-prod.yml up -d"
- ssh izyim@40.76.84.105 "cd exchange && git add . && git commit -am "merge staging" && git pull origin master && sudo docker-compose -f docker-prod.yml build && sudo docker-compose -f docker-prod.yml up -d"
environment:
name: staging
url: https://exchange-staging.izyim.com/
+5 -5
View File
@@ -1,9 +1,9 @@
# Build frontend assets
FROM node as frontend
WORKDIR /app
ADD . /app
RUN npm install
RUN npm run production
# FROM node as frontend
# WORKDIR /app
# ADD . /app
# RUN npm install
# RUN npm run production
# Build backend
FROM php:7.1.3
+1 -1
View File
@@ -13,6 +13,6 @@ RUN curl --silent --show-error --fail --location \
COPY Caddyfile /etc/Caddyfile
WORKDIR /var/www
RUN ln -sf /var/www/storage/app/public /var/www/public
RUN ln -sf /var/www/storage/app/public /var/www/public/storage
CMD ["/usr/bin/caddy", "--conf", "/etc/Caddyfile", "--log", "stdout"]