How to node script


#1

Hi,
I have dreamfactory install on windows using bitnami.
i have updated .evn file in httpd folder with node path as DF_NODEJS_PATH='C:\Program Files\nodejs’
and ran php artisan config:clear

and created script -> Process Event Scripts user user.register [POST] user.register user.register.post.pre_process
and script just has console.log((platform.session.user.id) tried throwing error but that didnt work too.
I can create user fine with rest api but node script is not getting executed.
how to know if node script is getting executed and where to check console.log on windows with bitnami ?


#2

ok resloved it
for user create event we have to create script at > Process Event Scripts -> system -> system.user [POST] system.user