Cache node_modules

parent 8c8e46b0
...@@ -26,9 +26,10 @@ deploy-prod: ...@@ -26,9 +26,10 @@ deploy-prod:
- chmod 700 "$SSH_DEPLOY_KEY" - chmod 700 "$SSH_DEPLOY_KEY"
- rsync -e "ssh -i $SSH_DEPLOY_KEY" --delete-after -rlptP public/ "$SSH_DEPLOY_USER@$SSH_DEPLOY_HOST:/www.poul.org/" - rsync -e "ssh -i $SSH_DEPLOY_KEY" --delete-after -rlptP public/ "$SSH_DEPLOY_USER@$SSH_DEPLOY_HOST:/www.poul.org/"
cache: cache:
key: gems key: build-deps
paths: paths:
- "/usr/local/bundle" - "/usr/local/bundle/"
- "node_modules/"
only: only:
- master - master
...@@ -40,8 +41,9 @@ pages: ...@@ -40,8 +41,9 @@ pages:
paths: paths:
- public - public
cache: cache:
key: gems key: build-deps
paths: paths:
- "/usr/local/bundle" - "/usr/local/bundle/"
- "node_modules/"
only: only:
- develop - develop
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment