1.0.9 • Published 4 years ago

platformsh-env-files v1.0.9

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
4 years ago

platform.sh env files

writes platform.sh env vars whose name starts with file: to the named file, similarly to how d8config: is used to set drupal 8 config

eg. 'file:/tmp/path' = 'data to write\n2nd line'

prerequisites

node.js 12+ is required in the p.sh container

setup

install / update node if required (eg. the php image has node but only v6):

then run the package from the build or deploy script in .platform.app.yaml using npx:

hooks:
  deploy: |
    npx platformsh-env-files

alternatively, if running only at deploy, it can be preinstalled into the image to reduce deploy runtime:

npm i platformsh-env-files

if writing files at deploy, remember that most directories are read-only by default so make sure to choose a writeable location

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago