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."
- You can't install gulp globally, since cloudways won't allow global npm install.
- 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?!
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.
AdminCloudways (Admin, Cloudways) commented
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.