matar15
12/07/2017, 4:05 AMhello:
handler:
code:
src: src/hello.js
environment:
FILE_PATH: /var/faas/functions/cjap0vfj600020132eqeglvqz/hello/src/ohter_file.json
but does not work if i write related path
hello:
handler:
code:
src: src/hello.js
environment:
FILE_PATH: ./src/ohter_file.json
I also tried src/other_file.json
, other_file.json
, ./other_file.json
.
import(‘fs’) shows other_file.json
and hello.js
are located under /var/faas/functions/cjap0vfj600020132eqeglvqz/hello/src
I can go with full path option. But my concern is if full path changes?