Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #203 from Financial-Times/matth/fix-deploy-assets
Browse files Browse the repository at this point in the history
Refactor incorrect nested logic in deploy-assets task
  • Loading branch information
i-like-robots authored Jul 9, 2019
2 parents ecfbea5 + 6a020cd commit fc94148
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/tasks/deploy.mk
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#Must be above deplo%
deploy-asset%:
deploy-asset%: ## deploy-assets: uploads static files such as CSS and JS to S3 based on the contents of a manifest file
@if [ -e public/manifest.json ]; then\
nht deploy-hashed-assets --monitor-assets --manifest-file manifest.json --destination-directory page-kit;\
fi

@if [ -e public/asset-hashes.json ]; then\
if [ -e page-kit.config.js ]; then\
nht deploy-hashed-assets --monitor-assets --manifest-file manifest.json --destination-directory page-kit;\
else\
nht deploy-hashed-assets --monitor-assets;\
fi;\
nht deploy-hashed-assets --monitor-assets;\
fi

#Must be above deplo%
Expand Down

0 comments on commit fc94148

Please sign in to comment.