Skip to content

Commit

Permalink
Update Makefile for site.
Browse files Browse the repository at this point in the history
  • Loading branch information
mosbth committed Nov 2, 2020
1 parent ce8e9b8 commit f93794b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Makefile_site
Expand Up @@ -169,7 +169,7 @@ install: prepare install-production install-tools-php install-tools-bash

# target: install-production - Install tools needed for production
.PHONY: install-production
install-production:
install-production:
@$(call HELPTEXT,$@)
[ ! -f composer.json ] || composer --no-dev install

Expand Down Expand Up @@ -276,7 +276,8 @@ install-tools-php:

curl -Lso $(PHPCBF) https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar && chmod 755 $(PHPCBF)

curl -Lso $(PHPMD) http://static.phpmd.org/php/latest/phpmd.phar && chmod 755 $(PHPMD)
# phpmd
curl -Lso $(PHPMD) https://github.com/phpmd/phpmd/releases/download/2.8.1/phpmd.phar && chmod 755 $(PHPMD)

curl -Lso $(PHPLOC) https://phar.phpunit.de/phploc.phar && chmod 755 $(PHPLOC)

Expand Down Expand Up @@ -502,6 +503,11 @@ site-build:
# Create the local htdocs directory
install -d $(LOCAL_HTDOCS)/log

# Create the htdocs cache directory
install -m 0777 -d $(LOCAL_HTDOCS)/cache
install -m 0777 -d $(LOCAL_HTDOCS)/cache/anax
install -m 0777 -d $(LOCAL_HTDOCS)/cache/cimage

# Create and sync cache
#bash -c "install -d -m 777 cache/{cimage,anax,forum,forum-files}"
#rsync -av cache $(LOCAL_HTDOCS)
Expand All @@ -517,7 +523,7 @@ site-build:
.PHONY: local-publish
local-publish:
@$(call HELPTEXT,$@)
rsync -av $(EXCLUDE_ON_PUBLISH) config content htdocs vendor $(LOCAL_HTDOCS)
rsync -av $(EXCLUDE_ON_PUBLISH) config content data htdocs src view vendor $(LOCAL_HTDOCS)

@# Enable robots if available
[ ! -f $(ROBOTSTXT) ] || cp $(ROBOTSTXT) "$(LOCAL_HTDOCS)/htdocs/robots.txt"
Expand Down
7 changes: 7 additions & 0 deletions REVISION.md
Expand Up @@ -3,6 +3,13 @@ Revision history



v2.0.13 (2020-11-02)
---------------------------------

* Update Makefile for site.



v2.0.12 (2020-10-23)
---------------------------------

Expand Down

0 comments on commit f93794b

Please sign in to comment.