-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running node from php via exec #1789
Comments
I resolved this by using Task Scheduling. |
@dehumanise you have said that you can't run node script, but you don't say anything about the error you had. Can you please add some stack trace or something like that so we can help you more. Also there is a table
|
PROBLEM: FIX:
You can also disable/enable node installation via the .env file the same way as in the workspace. Just add the following to the php-fpm: build: args: in your
Note that the |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi again 👋 we would like to inform you that this issue has been automatically |
@sysoce I've tried this, but getting error upon php-fpm container re-building with --no-cache option.
executor failed running [/bin/sh -c if [ ${INSTALL_NODE} = true ]; then mkdir -p $NVM_DIR && curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash && . Any Ideas how to resolve this ? |
you just need to add one line making a new directory like this
after
full listing that works below
but this don't adds node to the path or /usr/bin i don't know why and you need to call it with this full string
|
Info:
$ docker --version
): 18.06.1-ce, build e68fc7a$ git rev-parse HEAD
): 85c57a0Is it possible to run a node script from php via exec() or something?
Node is installed in the workspace container so it's not accessible from php-fpm and even if I install it there as well, I still can't access it from web php as www-data user.
I've tried installing node as www-data in php-fpm (unsuccessfully).
Maybe there's an easier way that I'm just not seeing?
The text was updated successfully, but these errors were encountered: