Skip to content

Commit

Permalink
restored invocation of processing ssi elements (#19)
Browse files Browse the repository at this point in the history
Co-authored-by: Igor Kandyba <igor.kandyba@gmail.com>
  • Loading branch information
beliayeu and meramo committed Jan 9, 2020
1 parent e9fcb9a commit 90d00a6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .platform.app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ hooks:
export PSH_URL_REPLACER_TMP_FILE=$PLATFORM_DOCUMENT_ROOT/../static/sitemap_pshtmp.xml
export PSH_URL_REPLACER_TARGET_FILE=$APP_VOLUME/sitemap.xml
node $PLATFORM_APP_DIR/packages/bodiless-psh/lib/psh-url-replacer.js build
# ssi preparation
export SSI_CONF_PATH=examples/test-site/ssi/ssi_conf.json
export DOCUMENT_ROOT=$PLATFORM_DOCUMENT_ROOT
export VOLUME_DIR=$APP_VOLUME
node $PLATFORM_APP_DIR/packages/bodiless-psh/lib/generate-ssi-files.js build
deploy: |
#processing site url
APP_SITE_URL=$(echo $APP_SITE_URL | sed -e "s/\${PLATFORM_ENVIRONMENT}/$PLATFORM_ENVIRONMENT/g")
Expand All @@ -62,6 +67,10 @@ hooks:
export PSH_URL_REPLACER_TARGET_URL=$APP_SITE_URL
export PSH_URL_REPLACER_PROD_ENV=$APP_PROD_ENV
node $PLATFORM_APP_DIR/packages/bodiless-psh/lib/psh-url-replacer.js deploy
# ssi files generation
export SSI_CONF_PATH=examples/test-site/ssi/ssi_conf.json
export VOLUME_DIR=$APP_VOLUME
node $PLATFORM_APP_DIR/packages/bodiless-psh/lib/generate-ssi-files.js deploy
# The size of the persistent disk of the application (in MB).
disk: 256
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ hooks:
export PSH_URL_REPLACER_TMP_FILE=$PLATFORM_DOCUMENT_ROOT/../static/sitemap_pshtmp.xml
export PSH_URL_REPLACER_TARGET_FILE=$APP_VOLUME/sitemap.xml
node $PLATFORM_APP_DIR/node_modules/@bodiless/psh/lib/psh-url-replacer.js build
# ssi preparation
export SSI_CONF=ssi/ssi_conf.json
export DOCUMENT_ROOT=$PLATFORM_DOCUMENT_ROOT
export VOLUME_DIR=$APP_VOLUME
node $PLATFORM_APP_DIR/node_modules/@bodiless/psh/lib/generate-ssi-files.js build
deploy: |
#processing site url
APP_SITE_URL=$(echo $APP_SITE_URL | sed -e "s/\${PLATFORM_ENVIRONMENT}/$PLATFORM_ENVIRONMENT/g")
Expand All @@ -64,6 +69,10 @@ hooks:
export PSH_URL_REPLACER_TARGET_URL=$APP_SITE_URL
export PSH_URL_REPLACER_PROD_ENV=$APP_PROD_ENV
node $PLATFORM_APP_DIR/node_modules/@bodiless/psh/lib/psh-url-replacer.js deploy
# ssi files generation
export SSI_CONF=ssi/ssi_conf.json
export VOLUME_DIR=$APP_VOLUME
node $PLATFORM_APP_DIR/node_modules/@bodiless/psh/lib/generate-ssi-files.js deploy
# The size of the persistent disk of the application (in MB).
disk: 256
Expand Down

0 comments on commit 90d00a6

Please sign in to comment.