简体   繁体   English

Envoyer部署挂钩 - 找不到命令

[英]Envoyer deployment hooks - command not found

I use envoyer.io for deploying my apps. 我使用envoyer.io来部署我的应用程序。

Recently I removed compiled css/js files from my git repo. 最近我从我的git repo中删除了已编译的css / js文件。 Instead I want to compile them on production server. 相反,我想在生产服务器上编译它们。 I tired to add a couple of deployment hooks after composer install. 在编写器安装后,我厌倦了添加几个部署挂钩。 But without any success, each my try failed with "command not found" 但是没有任何成功,我的每次尝试都失败了“找不到命令”

For example, one of the hooks look like: 例如,其中一个钩子看起来像:

cd {{release}}

npm install

I tried both {{release}} and full path and I always got 我尝试了{{release}}和完整路径,我总是得到

"bash: line 2: gulp: command not found"

Though when I did this from console it worked. 虽然当我从控制台做到这一点时,它工作。

Any solutions? 有解决方案吗

Thanks in advance 提前致谢

The npm install does not install gulp itself, but rather elixir and all of the pieces it uses to use gulp. npm install不会安装gulp本身,而是安装elixir以及它用来使用gulp的所有部分。

When you install gulp, you should install it globally: npm install --global gulp npm install --global gulp ,应该全局npm install --global gulpnpm install --global gulp

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM