Run gulp on CW servers
So i talked to 2 support employees today, both with the same outcome: "Today it is not possible to run gulp on cloudways."
1. You can't install gulp globally, since cloudways won't allow global npm install.
2. You can't run gulp locally, because this will give you some permission denied.
The weirdest thing of all... Gulp is necessary to use Elixir on Laravel 5.x. The have pre-installed laravel applications, but you can't use the elixir function. Wtf?!
I am sorry you had to go through that much trouble.
Could you please help me understand how you were trying to use Gulp here that didn’t work?
It is true that at this point in time we don’t support global installation of Gulp. But you should be able to use Gulp easily.
If you have the Gulp dependency defined in the package.json file, then you may run `npm install` to install it. Once installed, if you have a gulpfile.js with Elixir assets defined, you can run gulp by referencing it via `./node_modules/gulp/bin/gulp.js`. It is a somewhat inconvenient, yes, but it should do the job right.
Could you please tell me if you faced issues this way?
Brian Dombrowski commented
I've figured out a way to get Gulp working well in Cloudways. Checkout my knowledge base article about it: https://kb.benevolent.tech/knowledge-base/running-npm-and-gulp-in-cloudways/
it actually works now, but the gulp.js library was there before.
Otherwise i wouldn't have got "Permission denied" but i would have gotten "No such file or directory".
Can you believe that there were 3 support people frop cloudways before you that were not able to help me? They all logged in to the server to.
Don't get me wrong i'm very grateful, i think i can use cloudways now for some of my websites.
I logged in with your master user and looked inside your Laravel application (pthsuyabeq). I noticed that the gulp.js binary was not available inside the `./node_modules/gulp/bin/` directory inside your application's public_html folder. So I went ahead and ran `npm install gulp` from inside the public_html folder. After that, I was able to run `./node_modules/gulp/bin/gulp.js` which resulted in a successful run. Can you please check again if this works for you?
This command you provided me gives me permission denied. (like i mentioned in original post).
Feel free to login to my Laravel application (i have only 1 server and 1 laravel application), the account is the same e-mail as the account i'm posting on here.